Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasspinner committed Jun 9, 2024
1 parent fb0630c commit b002c2b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/fracture/src/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ mod factorizing_permutation {
continue;
}
trace!("refine:P:0: {:?}", d2(&*P));
P[i] = X.clone();
P[i].clone_from(&X);
P.insert(i + between as usize, X_a.clone());
trace!("refine:P:1: {:?}", d2(&*P));
add_pivot(X, X_a, pivots, modules);
Expand Down
2 changes: 1 addition & 1 deletion crates/playground/src/factorizing_permutation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ pub mod kar19_checked_impl {
continue;
}
//traceln!("refine:P:0: {:?}", d2(&*self.P));
self.P[i] = X.clone();
self.P[i].clone_from(&X);
self.P.insert(i + between as usize, X_a.clone());
//traceln!("refine:P:1: {:?}", d2(&*self.P));
self.add_pivot(X, X_a);
Expand Down
2 changes: 1 addition & 1 deletion crates/playground/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ fn small_graph() -> UnGraph<(), ()> {
#[allow(non_snake_case)]
fn main() {
let graph = small_graph();
let _partition = vec![vec![5, 6], vec![0, 1, 2, 3, 4, 7, 8, 9, 10]];
let _partition = [vec![5, 6], vec![0, 1, 2, 3, 4, 7, 8, 9, 10]];
//let partition = vec![vec![0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]];

let partition = vec![vec![3, 4], vec![0, 1, 2, 5, 6, 7, 8, 9, 10]];
Expand Down

0 comments on commit b002c2b

Please sign in to comment.