Run cargo clippy --fix (#250)
* Run `cargo clippy --fix` * Run `cargo clippy --all-features --fix` * Fix other clippy warnings * cargo fmt Co-authored-by: Luis Moreno <morenol@users.noreply.github.com>
This commit is contained in:
@@ -169,7 +169,7 @@ pub fn train_test_split<
|
||||
let n_test = ((n as f32) * test_size) as usize;
|
||||
|
||||
if n_test < 1 {
|
||||
panic!("number of sample is too small {}", n);
|
||||
panic!("number of sample is too small {n}");
|
||||
}
|
||||
|
||||
let mut indices: Vec<usize> = (0..n).collect();
|
||||
@@ -553,6 +553,6 @@ mod tests {
|
||||
&accuracy,
|
||||
)
|
||||
.unwrap();
|
||||
println!("{:?}", results);
|
||||
println!("{results:?}");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user