diff options
author | 2023-09-20 05:07:34 +0200 | |
---|---|---|
committer | 2023-09-20 05:07:34 +0200 | |
commit | 1e4bade53aaaeb17542d0372ac827bcb7daf037c (patch) | |
tree | a45ed5cd10a7b67f2a93791e6358fed54c086cea /widget/src/lazy | |
parent | caed50b277495e4375975f3f4e271b8fcbc0c33f (diff) | |
download | iced-1e4bade53aaaeb17542d0372ac827bcb7daf037c.tar.gz iced-1e4bade53aaaeb17542d0372ac827bcb7daf037c.tar.bz2 iced-1e4bade53aaaeb17542d0372ac827bcb7daf037c.zip |
Fix `clippy::redundant-closure-for-method-calls`
Diffstat (limited to 'widget/src/lazy')
-rw-r--r-- | widget/src/lazy/component.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/widget/src/lazy/component.rs b/widget/src/lazy/component.rs index fe99a7f2..d454b72b 100644 --- a/widget/src/lazy/component.rs +++ b/widget/src/lazy/component.rs @@ -511,7 +511,7 @@ impl<'a, 'b, Message, Renderer, Event, S> Drop for Overlay<'a, 'b, Message, Renderer, Event, S> { fn drop(&mut self) { - if let Some(heads) = self.0.take().map(|inner| inner.into_heads()) { + if let Some(heads) = self.0.take().map(Inner::into_heads) { *heads.instance.tree.borrow_mut().borrow_mut() = Some(heads.tree); } } |