diff options
author | 2020-10-31 16:51:11 +0100 | |
---|---|---|
committer | 2020-10-31 16:51:11 +0100 | |
commit | 4dc93e8138132298746c71492773dcd70a15cd17 (patch) | |
tree | 4b9297d5f7983b0c7e25b25ca3aac4f737140dfa /native | |
parent | 16646ffc4172ffb7b1a6ad0f50afe826ddcf4094 (diff) | |
download | iced-4dc93e8138132298746c71492773dcd70a15cd17.tar.gz iced-4dc93e8138132298746c71492773dcd70a15cd17.tar.bz2 iced-4dc93e8138132298746c71492773dcd70a15cd17.zip |
Fix lifetimes in `Layout::children`
Diffstat (limited to 'native')
-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 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<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), |