We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4858a37 commit 7e8568bCopy full SHA for 7e8568b
Cargo.toml
@@ -179,7 +179,6 @@ needless_doctest_main = "allow"
179
new_without_default = "allow"
180
non_canonical_clone_impl = "allow"
181
non_canonical_partial_ord_impl = "allow"
182
-option_map_unit_fn = "allow"
183
partialeq_to_none = "allow"
184
ptr_arg = "allow"
185
redundant_closure = "allow"
crates/hir-def/src/nameres/collector.rs
@@ -2371,9 +2371,9 @@ impl ModCollector<'_, '_> {
2371
};
2372
2373
for (name, macs) in source.scope.legacy_macros() {
2374
- macs.last().map(|&mac| {
+ if let Some(&mac) = macs.last() {
2375
target.scope.define_legacy_macro(name.clone(), mac);
2376
- });
+ }
2377
}
2378
2379
0 commit comments