Skip to content

Commit 7e8568b

Browse files
committed
option_map_unit_fn
1 parent 4858a37 commit 7e8568b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ needless_doctest_main = "allow"
179179
new_without_default = "allow"
180180
non_canonical_clone_impl = "allow"
181181
non_canonical_partial_ord_impl = "allow"
182-
option_map_unit_fn = "allow"
183182
partialeq_to_none = "allow"
184183
ptr_arg = "allow"
185184
redundant_closure = "allow"

crates/hir-def/src/nameres/collector.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2371,9 +2371,9 @@ impl ModCollector<'_, '_> {
23712371
};
23722372

23732373
for (name, macs) in source.scope.legacy_macros() {
2374-
macs.last().map(|&mac| {
2374+
if let Some(&mac) = macs.last() {
23752375
target.scope.define_legacy_macro(name.clone(), mac);
2376-
});
2376+
}
23772377
}
23782378
}
23792379

0 commit comments

Comments
 (0)