Skip to content

Commit

Permalink
stats: allow clippy::cast_precision_loss
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
jqnatividad committed Oct 7, 2024
1 parent 1f23e6f commit 3d54789
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cmd/stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1582,6 +1582,7 @@ impl Stats {
// so we can compute avg_length
let mut buffer = itoa::Buffer::new();
pieces.push(buffer.format(stotlen).to_owned());
#[allow(clippy::cast_precision_loss)]
pieces.push(util::round_num(
stotlen as f64 / *RECORD_COUNT.get().unwrap_or(&1) as f64,
4,
Expand Down

0 comments on commit 3d54789

Please sign in to comment.