mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
option_map_unit_fn
This commit is contained in:
parent
4858a3784d
commit
7e8568b293
2 changed files with 2 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue