mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 21:13:37 +00:00
option_map_unit_fn
This commit is contained in:
parent
4858a3784d
commit
7e8568b293
2 changed files with 2 additions and 3 deletions
|
@ -179,7 +179,6 @@ needless_doctest_main = "allow"
|
|||
new_without_default = "allow"
|
||||
non_canonical_clone_impl = "allow"
|
||||
non_canonical_partial_ord_impl = "allow"
|
||||
option_map_unit_fn = "allow"
|
||||
partialeq_to_none = "allow"
|
||||
ptr_arg = "allow"
|
||||
redundant_closure = "allow"
|
||||
|
|
|
@ -2371,9 +2371,9 @@ impl ModCollector<'_, '_> {
|
|||
};
|
||||
|
||||
for (name, macs) in source.scope.legacy_macros() {
|
||||
macs.last().map(|&mac| {
|
||||
if let Some(&mac) = macs.last() {
|
||||
target.scope.define_legacy_macro(name.clone(), mac);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue