Merge pull request #590 from Limeth/master
Fix lifetimes in `Layout::children`
This commit is contained in:
commit
e6131783e9
@ -64,7 +64,7 @@ impl<'a> Layout<'a> {
|
||||
///
|
||||
/// [`Layout`]: struct.Layout.html
|
||||
/// [`Node`]: struct.Node.html
|
||||
pub fn children(&'a self) -> impl Iterator<Item = Layout<'a>> {
|
||||
pub fn children(self) -> impl Iterator<Item = Layout<'a>> {
|
||||
self.node.children().iter().map(move |node| {
|
||||
Layout::with_offset(
|
||||
Vector::new(self.position.x, self.position.y),
|
||||
|
Loading…
Reference in New Issue
Block a user