Fix "never read" lint
This commit is contained in:
parent
74270a2deb
commit
d4ddae7799
1 changed files with 5 additions and 2 deletions
|
|
@ -100,14 +100,17 @@ impl<T: AxisToplevelLayout> ToplevelLayout for T {
|
||||||
let inner = self
|
let inner = self
|
||||||
.layout(max_limit, toplevels_slice)
|
.layout(max_limit, toplevels_slice)
|
||||||
.map(|rect| rect.pack(self.axis()));
|
.map(|rect| rect.pack(self.axis()));
|
||||||
AxisLayoutIterator { inner, toplevels }
|
AxisLayoutIterator {
|
||||||
|
inner,
|
||||||
|
_toplevels: toplevels,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
struct AxisLayoutIterator<'a, I: Iterator<Item = Rectangle>> {
|
struct AxisLayoutIterator<'a, I: Iterator<Item = Rectangle>> {
|
||||||
inner: I,
|
inner: I,
|
||||||
// After `inner` so it is dropped only after that is dropped
|
// After `inner` so it is dropped only after that is dropped
|
||||||
toplevels: AliasableVec<LayoutToplevel<'a, AxisSize>>,
|
_toplevels: AliasableVec<LayoutToplevel<'a, AxisSize>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a, I: Iterator<Item = Rectangle>> Iterator for AxisLayoutIterator<'a, I> {
|
impl<'a, I: Iterator<Item = Rectangle>> Iterator for AxisLayoutIterator<'a, I> {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue