From 1c01a3c1dd98d4930d16417d4499ca3eaa564924 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 22 Sep 2023 13:14:53 +0000 Subject: [PATCH 1/2] chore(deps): update rust crate codspeed-criterion-compat to 2.2.0 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" From 49c917d2c5f2ecabcdd39c815c8fc9566b1eaf8c Mon Sep 17 00:00:00 2001 From: Samuel Tardieu Date: Fri, 22 Sep 2023 15:21:47 +0200 Subject: [PATCH 2/2] Use or_default() in test --- tests/r299.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); }