diff options
Diffstat (limited to 'src/makefile/macro.rs')
-rw-r--r-- | src/makefile/macro.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/makefile/macro.rs b/src/makefile/macro.rs index 25f8627..daf770d 100644 --- a/src/makefile/macro.rs +++ b/src/makefile/macro.rs @@ -191,10 +191,10 @@ impl<'parent, 'lookup> Set<'parent, 'lookup> { sne.extend(one); } (ExportConfig::Only(se), ExportConfig::AllBut(one)) => { - se.extend(other.keys().cloned().filter(|name| !one.contains(name))); + se.extend(other.keys().filter(|name| !one.contains(*name)).cloned()); } (ExportConfig::AllBut(sne), ExportConfig::Only(oe)) => { - sne.extend(other.keys().cloned().filter(|name| !oe.contains(name))); + sne.extend(other.keys().filter(|name| !oe.contains(*name)).cloned()); } } self.data.extend(other); @@ -397,6 +397,12 @@ impl fmt::Display for Set<'_, '_> { } } +impl Default for Set<'_, '_> { + fn default() -> Self { + Self::new() + } +} + fn builtins() -> Vec<(&'static str, TokenString)> { // Fuck it, might as well. macro_rules! handle { |