Fix clippy::redundant-closure-for-method-calls

This commit is contained in:
Héctor Ramón Jiménez 2023-09-20 05:07:34 +02:00
parent caed50b277
commit 1e4bade53a
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
3 changed files with 6 additions and 4 deletions

View file

@ -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);
}
}