fix clippy

This commit is contained in:
hinto.janai 2024-10-08 20:35:00 -04:00
parent 9a0b6138b5
commit 8c9d159124
No known key found for this signature in database
GPG key ID: D47CE05FA175A499
2 changed files with 2 additions and 3 deletions

View file

@ -1,3 +1,5 @@
#![expect(dead_code, reason = "code hidden behind feature flags")]
use cfg_if::cfg_if;
use crate::timings::Timings;
@ -30,7 +32,6 @@ pub(crate) fn print_timings_markdown(timings: &Timings) {
}
/// Enabled via `json` feature.
#[expect(dead_code)]
pub(crate) fn print_timings_json(timings: &Timings) {
let json = serde_json::to_string_pretty(timings).unwrap();
println!("\n{json}");

View file

@ -1,5 +1,3 @@
use std::io::Write;
use tracing::{info, instrument, trace};
use cuprate_benchmark_lib::Benchmark;