fix clippy

This commit is contained in:
Evan Almloff committed 2023-08-09 11:10:41 -07:00
1 parent 8b4e0b3e07
commit 8d1c17ba7d
6 files changed
+12 -14

No files matched your search

+2 -8
View File
@@ -288,10 +288,7 @@ impl DynamicMapping {
let idx = self.last_attribute_idx;
self.last_attribute_idx += 1;
self.attribute_to_idx
.entry(attr)
.or_insert_with(Vec::new)
.push(idx);
self.attribute_to_idx.entry(attr).or_default().push(idx);
idx
}
@@ -300,10 +297,7 @@ impl DynamicMapping {
let idx = self.last_element_idx;
self.last_element_idx += 1;
self.node_to_idx
.entry(node)
.or_insert_with(Vec::new)
.push(idx);
self.node_to_idx.entry(node).or_default().push(idx);
idx
}