diff options
Diffstat (limited to 'native/src/layout.rs')
-rw-r--r-- | native/src/layout.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<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), |