summaryrefslogtreecommitdiffstats
path: root/native
diff options
context:
space:
mode:
authorLibravatar Jakub Hlusička <limeth@protonmail.com>2020-11-02 16:27:28 +0100
committerLibravatar Jakub Hlusička <limeth@protonmail.com>2020-11-02 16:27:28 +0100
commit1d51025993fa3819695bf27e1e4ecee56d3e324a (patch)
treeba923c4abc5cfb8f3266bd3db2eb1d0b4aeb0d0d /native
parent4dc93e8138132298746c71492773dcd70a15cd17 (diff)
downloadiced-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.rs2
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),