mirror of
https://github.com/emilk/egui.git
synced 2026-06-27 23:13:13 -04:00
change lifetimes so that 'a is always the lifetime of Ui
This commit is contained in:
@@ -198,7 +198,7 @@ impl<'a> TableBody<'a> {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn row(&mut self, height: f32, row: impl FnOnce(TableRow<'_, 'a>)) {
|
||||
pub fn row(&mut self, height: f32, row: impl FnOnce(TableRow<'a, '_>)) {
|
||||
row(TableRow {
|
||||
layout: &mut self.layout,
|
||||
widths: self.widths.clone(),
|
||||
@@ -212,7 +212,7 @@ impl<'a> TableBody<'a> {
|
||||
}
|
||||
|
||||
pub struct TableRow<'a, 'b> {
|
||||
layout: &'a mut Layout<'b>,
|
||||
layout: &'b mut Layout<'a>,
|
||||
widths: Vec<f32>,
|
||||
striped: bool,
|
||||
height: f32,
|
||||
|
||||
Reference in New Issue
Block a user