diff options
author | 2020-11-02 17:57:56 +0100 | |
---|---|---|
committer | 2020-11-02 17:57:56 +0100 | |
commit | e6131783e981121536769e221a9b939c41b60dec (patch) | |
tree | b616f671c7cf0abd6ba9dd712f7685245473f2c1 /native | |
parent | 28280600d7fd19dbed814a56703201b2c1e87b77 (diff) | |
parent | 1d51025993fa3819695bf27e1e4ecee56d3e324a (diff) | |
download | iced-e6131783e981121536769e221a9b939c41b60dec.tar.gz iced-e6131783e981121536769e221a9b939c41b60dec.tar.bz2 iced-e6131783e981121536769e221a9b939c41b60dec.zip |
Merge pull request #590 from Limeth/master
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..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(&'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), |