change lifetimes so that 'a is always the lifetime of Ui
This commit is contained in:
parent
a944208b19
commit
4f6f871f29
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
row(TableRow {
|
||||||
layout: &mut self.layout,
|
layout: &mut self.layout,
|
||||||
widths: self.widths.clone(),
|
widths: self.widths.clone(),
|
||||||
|
@ -212,7 +212,7 @@ impl<'a> TableBody<'a> {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct TableRow<'a, 'b> {
|
pub struct TableRow<'a, 'b> {
|
||||||
layout: &'a mut Layout<'b>,
|
layout: &'b mut Layout<'a>,
|
||||||
widths: Vec<f32>,
|
widths: Vec<f32>,
|
||||||
striped: bool,
|
striped: bool,
|
||||||
height: f32,
|
height: f32,
|
||||||
|
|
Loading…
Reference in a new issue