fix clippy
This commit is contained in:
1 parent
8b4e0b3e07
commit
8d1c17ba7d
6 files changed
+12
-14
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user