diff --git a/Cargo.toml b/Cargo.toml index 67ccd7dc..66d1d621 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,7 +31,7 @@ thiserror = "1.0.44" deprecate-until = "0.1.0" [dev-dependencies] -codspeed-criterion-compat = "2.1.0" +codspeed-criterion-compat = "2.2.0" itertools = "0.11.0" lazy_static = "1.4.0" movingai = "1.3.0" diff --git a/tests/r299.rs b/tests/r299.rs index 39e3e3cc..a646ffce 100644 --- a/tests/r299.rs +++ b/tests/r299.rs @@ -17,7 +17,7 @@ fn add_successor( to: &Point, cost: usize, ) { - let entry = n.entry(from.clone()).or_insert_with(Vec::new); + let entry = n.entry(from.clone()).or_default(); entry.push((to.clone(), cost)); }