Fix clippy::redundant-closure-for-method-calls
This commit is contained in:
parent
caed50b277
commit
1e4bade53a
3 changed files with 6 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue