From 8c9d159124fa3eb2e40fde158c2d1f9da62f6f73 Mon Sep 17 00:00:00 2001 From: "hinto.janai" Date: Tue, 8 Oct 2024 20:35:00 -0400 Subject: [PATCH] fix clippy --- benches/benchmark/bin/src/print.rs | 3 ++- benches/benchmark/bin/src/run.rs | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/benches/benchmark/bin/src/print.rs b/benches/benchmark/bin/src/print.rs index 8fb489d..36a5f05 100644 --- a/benches/benchmark/bin/src/print.rs +++ b/benches/benchmark/bin/src/print.rs @@ -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}"); diff --git a/benches/benchmark/bin/src/run.rs b/benches/benchmark/bin/src/run.rs index 28ffc35..05a220f 100644 --- a/benches/benchmark/bin/src/run.rs +++ b/benches/benchmark/bin/src/run.rs @@ -1,5 +1,3 @@ -use std::io::Write; - use tracing::{info, instrument, trace}; use cuprate_benchmark_lib::Benchmark;