We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b204710 commit 5a1678eCopy full SHA for 5a1678e
crates/webidl/src/first_pass.rs
@@ -125,7 +125,7 @@ impl FirstPass for webidl::ast::NonPartialMixin {
125
let entry = record
126
.mixins
127
.entry(self.name.clone())
128
- .or_insert(Default::default());
+ .or_insert_with(Default::default);
129
if mem::replace(&mut entry.non_partial, Some(self)).is_some() {
130
warn!(
131
"Encounterd multiple declarations of {}, using last encountered",
@@ -142,7 +142,7 @@ impl FirstPass for webidl::ast::PartialMixin {
142
143
144
145
146
entry.partials.push(self);
147
148
Ok(())
0 commit comments