clippy
This commit is contained in:
+3
-5
@@ -52,11 +52,9 @@ fn main() {
|
|||||||
Timer::EncodeStatestream,
|
Timer::EncodeStatestream,
|
||||||
] {
|
] {
|
||||||
let times = stats(timer);
|
let times = stats(timer);
|
||||||
println!(
|
#[allow(clippy::cast_precision_loss)]
|
||||||
"{timer:?}: {} ({:.8}ms avg)",
|
let avg_time = (times.micros as f64 / times.count as f64) / 1000.0;
|
||||||
times.count,
|
println!("{timer:?}: {} ({avg_time:.8}ms avg)", times.count,);
|
||||||
((times.micros as f64 / times.count as f64) / 1000.0)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
for counter in [
|
for counter in [
|
||||||
Counter::EncReusedBlocks,
|
Counter::EncReusedBlocks,
|
||||||
|
|||||||
Reference in New Issue
Block a user