summaryrefslogtreecommitdiffstats
path: root/native
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2020-11-02 17:57:56 +0100
committerLibravatar GitHub <noreply@github.com>2020-11-02 17:57:56 +0100
commite6131783e981121536769e221a9b939c41b60dec (patch)
treeb616f671c7cf0abd6ba9dd712f7685245473f2c1 /native
parent28280600d7fd19dbed814a56703201b2c1e87b77 (diff)
parent1d51025993fa3819695bf27e1e4ecee56d3e324a (diff)
downloadiced-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.rs2
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),