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.
3 parents 4ef79e5 + 1c01a3c + 49c917d commit 87ca1d3Copy full SHA for 87ca1d3
Cargo.toml
@@ -31,7 +31,7 @@ thiserror = "1.0.44"
31
deprecate-until = "0.1.0"
32
33
[dev-dependencies]
34
-codspeed-criterion-compat = "2.1.0"
+codspeed-criterion-compat = "2.2.0"
35
itertools = "0.11.0"
36
lazy_static = "1.4.0"
37
movingai = "1.3.0"
tests/r299.rs
@@ -17,7 +17,7 @@ fn add_successor(
17
to: &Point,
18
cost: usize,
19
) {
20
- let entry = n.entry(from.clone()).or_insert_with(Vec::new);
+ let entry = n.entry(from.clone()).or_default();
21
entry.push((to.clone(), cost));
22
}
23
0 commit comments