Skip to content

Commit

Permalink
run and apply cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkLoc committed Sep 29, 2024
1 parent 9ca8155 commit ff34f3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ pub fn statfq(
let mut qual_relative_pos = vec![];
for i in 1usize..=100 {
let idx = if i == 100 { len -1 } else {
let ret = (len as f64 * (i as f64/ 100 as f64) ) as usize;
let ret = (len as f64 * (i as f64/ 100_f64) ) as usize;
if ret == 0 { ret } else {ret -1 };
ret
};
Expand Down
2 changes: 1 addition & 1 deletion src/report.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ fn relavte_qual(
}
let mut qual_mean = total_error.iter().map(|e| -10.0 * (e / read_count).log10()).collect::<Vec<f64>>();
qual_mean.insert(0, 0.0);
let data_x = (0..=100).into_iter().collect::<Vec<u32>>();
let data_x = (0..=100).collect::<Vec<u32>>();
// qual_max.insert(0, 0);
// qual_min.insert(0, 0);

Expand Down

0 comments on commit ff34f3a

Please sign in to comment.