Skip to content

Commit 3409645

Browse files
committed
bind_instead_of_map
1 parent 2a239b9 commit 3409645

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ enum_variant_names = "allow"
167167
new_ret_no_self = "allow"
168168

169169
## Following lints should be tackled at some point
170-
bind_instead_of_map = "allow"
171170
borrowed_box = "allow"
172171
borrow_deref_ref = "allow"
173172
collapsible_if = "allow"

crates/hir/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4300,7 +4300,7 @@ impl Type {
43004300
) -> impl Iterator<Item = SmolStr> + 'a {
43014301
// iterate the lifetime
43024302
self.as_adt()
4303-
.and_then(|a| a.lifetime(db).and_then(|lt| Some((&lt.name).to_smol_str())))
4303+
.and_then(|a| a.lifetime(db).map(|lt| (&lt.name).to_smol_str()))
43044304
.into_iter()
43054305
// add the type and const parameters
43064306
.chain(self.type_and_const_arguments(db))

0 commit comments

Comments
 (0)