Take self
by value in Layout::children
This commit is contained in:
parent
4dc93e8138
commit
1d51025993
@ -64,7 +64,7 @@ impl<'a> Layout<'a> {
|
|||||||
///
|
///
|
||||||
/// [`Layout`]: struct.Layout.html
|
/// [`Layout`]: struct.Layout.html
|
||||||
/// [`Node`]: struct.Node.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| {
|
self.node.children().iter().map(move |node| {
|
||||||
Layout::with_offset(
|
Layout::with_offset(
|
||||||
Vector::new(self.position.x, self.position.y),
|
Vector::new(self.position.x, self.position.y),
|
||||||
|
Loading…
Reference in New Issue
Block a user