diff options
author | 2020-11-02 16:27:28 +0100 | |
---|---|---|
committer | 2020-11-02 16:27:28 +0100 | |
commit | 1d51025993fa3819695bf27e1e4ecee56d3e324a (patch) | |
tree | ba923c4abc5cfb8f3266bd3db2eb1d0b4aeb0d0d /native | |
parent | 4dc93e8138132298746c71492773dcd70a15cd17 (diff) | |
download | iced-1d51025993fa3819695bf27e1e4ecee56d3e324a.tar.gz iced-1d51025993fa3819695bf27e1e4ecee56d3e324a.tar.bz2 iced-1d51025993fa3819695bf27e1e4ecee56d3e324a.zip |
Take `self` by value 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 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), |