1
0
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:
René Rössler
2022-01-07 17:14:52 +01:00
parent a944208b19
commit 4f6f871f29

View File

@@ -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,