aboutsummaryrefslogtreecommitdiff
path: root/src/makefile/macro.rs
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2024-11-10 16:02:48 -0700
committerMelody Horn <melody@boringcactus.com>2024-11-10 16:02:48 -0700
commit7029372c9fada6316852915765cc0d763be3c63c (patch)
treed649d79de0b83b84637d85595fd6de2cfa38f17c /src/makefile/macro.rs
parente9080b515d86b9f39e97d4c8e1a157dfa4ba86f3 (diff)
downloadmakers-7029372c9fada6316852915765cc0d763be3c63c.tar.gz
makers-7029372c9fada6316852915765cc0d763be3c63c.zip
clippy moment
Diffstat (limited to 'src/makefile/macro.rs')
-rw-r--r--src/makefile/macro.rs10
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 {