clippy: update for recent update

This commit is contained in:
Jonathan Kelley committed 2022-02-26 17:39:25 -05:00
1 parent 74f40da997
commit d07e145df6
1 file changed
+1 -1
+1 -1
View File
@@ -152,7 +152,7 @@ impl<A: Dep> UseFutureDep for &A {
(*self).clone()
}
fn apply(self, state: &mut Vec<Box<dyn Any>>) -> bool {
match state.get_mut(0).map(|f| f.downcast_mut::<A>()).flatten() {
match state.get_mut(0).and_then(|f| f.downcast_mut::<A>()) {
Some(val) => {
if *val != *self {
*val = self.clone();