redundant_closure

This commit is contained in:
Johann Hemmann 2024-01-19 16:37:08 +01:00
parent 3cf1358eb8
commit 5a62a0db46
4 changed files with 6 additions and 10 deletions

View file

@ -3152,7 +3152,7 @@ impl DeriveHelper {
.and_then(|it| it.get(self.idx as usize))
.cloned(),
}
.unwrap_or_else(|| Name::missing())
.unwrap_or_else(Name::missing)
}
}
@ -4421,7 +4421,7 @@ impl Type {
traits_in_scope,
with_local_impls.and_then(|b| b.id.containing_block()).into(),
name,
&mut |id| callback(id),
callback,
);
}