From 1d51025993fa3819695bf27e1e4ecee56d3e324a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Hlusi=C4=8Dka?= Date: Mon, 2 Nov 2020 16:27:28 +0100 Subject: [PATCH] Take `self` by value in `Layout::children` --- native/src/layout.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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),