bind_instead_of_map

This commit is contained in:
Johann Hemmann 2024-01-19 13:10:29 +01:00
parent 2a239b9833
commit 3409645c3f
2 changed files with 1 additions and 2 deletions

View File

@ -167,7 +167,6 @@ enum_variant_names = "allow"
new_ret_no_self = "allow"
## Following lints should be tackled at some point
bind_instead_of_map = "allow"
borrowed_box = "allow"
borrow_deref_ref = "allow"
collapsible_if = "allow"

View File

@ -4300,7 +4300,7 @@ impl Type {
) -> impl Iterator<Item = SmolStr> + 'a {
// iterate the lifetime
self.as_adt()
.and_then(|a| a.lifetime(db).and_then(|lt| Some((&lt.name).to_smol_str())))
.and_then(|a| a.lifetime(db).map(|lt| (&lt.name).to_smol_str()))
.into_iter()
// add the type and const parameters
.chain(self.type_and_const_arguments(db))