Skip to content

Commit

Permalink
More fixes by clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
kkafar committed Oct 9, 2023
1 parent 1393b77 commit 6c5474d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aco/tsp/goodness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ mod tests {
let beta = 3.0;
let pheromone = FMatrix::from_vec(2, 2, vec![4.0, 2.0, 8.0, 0.5]);

let goodness = vec![16.0, 32.0, 4096.0, 128.0];
let goodness = [16.0, 32.0, 4096.0, 128.0];

let mut g_op = CanonicalGoodness::new(alpha, beta, heuristic);
for (a, b) in goodness.iter().zip(g_op.apply(&pheromone).iter()) {
Expand Down

0 comments on commit 6c5474d

Please sign in to comment.