option_map_unit_fn

This commit is contained in:
Johann Hemmann 2024-01-19 16:07:52 +01:00
parent 4858a3784d
commit 7e8568b293
2 changed files with 2 additions and 3 deletions

View file

@ -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);
});
}
}
}