fix(clippy): remove unnecessary borrow

This commit is contained in:
winstxnhdw 2024-06-27 15:17:10 +08:00
parent c6f5bc3862
commit 7c664fd6e2
No known key found for this signature in database
GPG Key ID: 28C6693A1379DAE9
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ impl<'a> ExpectedFile<'a> {
.unwrap_or_else(|| panic!("couldn't Unicode-ify file name of {:?}", pbase))
.replace(std::path::is_separator, "_");
let mut dec = GzDecoder::new(File::open(&pbase).unwrap());
let mut dec = GzDecoder::new(File::open(pbase.as_path()).unwrap());
let mut contents = Vec::new();
dec.read_to_end(&mut contents).unwrap();