From 4dc93e8138132298746c71492773dcd70a15cd17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Hlusi=C4=8Dka?= Date: Sat, 31 Oct 2020 16:51:11 +0100 Subject: [PATCH] Fix lifetimes 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 93d95e17..141bc1b9 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(&'a 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),