From d07e145df66201c588b64f9c224b63bc007bde59 Mon Sep 17 00:00:00 2001 From: Jonathan Kelley Date: Sat, 26 Feb 2022 17:39:25 -0500 Subject: [PATCH] clippy: update for recent update --- packages/hooks/src/usefuture.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/hooks/src/usefuture.rs b/packages/hooks/src/usefuture.rs index 1af254843..c7bdd819b 100644 --- a/packages/hooks/src/usefuture.rs +++ b/packages/hooks/src/usefuture.rs @@ -152,7 +152,7 @@ impl UseFutureDep for &A { (*self).clone() } fn apply(self, state: &mut Vec>) -> bool { - match state.get_mut(0).map(|f| f.downcast_mut::()).flatten() { + match state.get_mut(0).and_then(|f| f.downcast_mut::()) { Some(val) => { if *val != *self { *val = self.clone();