diff --git a/native/src/layout.rs b/native/src/layout.rs index 141bc1b9..b7fd531c 100644 --- a/native/src/layout.rs +++ b/native/src/layout.rs @@ -64,7 +64,7 @@ impl<'a> Layout<'a> { /// /// [`Layout`]: struct.Layout.html /// [`Node`]: struct.Node.html - pub fn children(&self) -> impl Iterator> + '_ { + pub fn children(self) -> impl Iterator> { self.node.children().iter().map(move |node| { Layout::with_offset( Vector::new(self.position.x, self.position.y),