From 29a120f2928b735f3bf647ec31bfa25354477789 Mon Sep 17 00:00:00 2001 From: reinterpretcat Date: Thu, 28 Nov 2024 20:37:26 +0100 Subject: [PATCH] Fix warnings and compilation error --- vrp-core/tests/unit/algorithms/structures/bitvec_test.rs | 4 ++-- vrp-scientific/benches/solomon_goal.rs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/vrp-core/tests/unit/algorithms/structures/bitvec_test.rs b/vrp-core/tests/unit/algorithms/structures/bitvec_test.rs index 2cd417ce..d5e6ab70 100644 --- a/vrp-core/tests/unit/algorithms/structures/bitvec_test.rs +++ b/vrp-core/tests/unit/algorithms/structures/bitvec_test.rs @@ -45,8 +45,8 @@ fn can_use_len_and_is_empty() { fn can_index() { let mut bitvec = BitVec::new(10); bitvec.set(3, true); - assert_eq!(bitvec[3], true); - assert_eq!(bitvec[4], false); + assert!(bitvec[3]); + assert!(!bitvec[4]); } #[test] diff --git a/vrp-scientific/benches/solomon_goal.rs b/vrp-scientific/benches/solomon_goal.rs index 77059e1e..adb341a9 100644 --- a/vrp-scientific/benches/solomon_goal.rs +++ b/vrp-scientific/benches/solomon_goal.rs @@ -129,6 +129,7 @@ where black_box(actual_fn( &insertion_ctx.problem.goal, &MoveContext::Activity { + solution_ctx, route_ctx, activity_ctx: &ActivityContext { index: 7, prev, target: &target, next }, },