Skip to content

Commit fddfffc

Browse files
authored
chore: make clippy happy (#2727)
1 parent 46ad8a5 commit fddfffc

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

benches/sccache_bench.rs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
use divan::{Bencher, black_box};
2323
use sccache::cache::{CacheRead, CacheWrite};
2424
use sccache::lru_disk_cache::LruCache;
25-
use sccache::util::{Digest, TimeMacroFinder, normalize_win_path, strip_basedirs};
25+
use sccache::util::{Digest, TimeMacroFinder, strip_basedirs};
2626
use std::io::Cursor;
2727

2828
// =============================================================================
@@ -820,16 +820,6 @@ fn lru_realistic_eviction_pressure(bencher: Bencher) {
820820
// Path Normalization Benchmarks
821821
// =============================================================================
822822

823-
/// Generate a realistic Windows path for benchmarking
824-
fn generate_win_path(depth: usize) -> Vec<u8> {
825-
let mut path = b"C:\\Users\\Developer\\Projects\\".to_vec();
826-
for i in 0..depth {
827-
path.extend_from_slice(format!("SubDir{}\\", i).as_bytes());
828-
}
829-
path.extend_from_slice(b"source_file.cpp");
830-
path
831-
}
832-
833823
/// Generate preprocessor output with embedded paths
834824
fn generate_preprocessor_output_with_paths(num_includes: usize, basedir: &[u8]) -> Vec<u8> {
835825
let mut data = Vec::new();

0 commit comments

Comments
 (0)