Use fs_err in more places (#644)

This commit is contained in:
Charlie Marsh 2023-12-13 20:11:45 -05:00 committed by GitHub
parent 4fd69c74b6
commit e0127581b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -9,7 +9,6 @@
#![allow(clippy::cast_sign_loss)]
use std::{
fs::File,
io::{BufReader, Cursor, Read, Seek, SeekFrom},
sync::{Arc, Mutex},
};
@ -117,7 +116,7 @@ impl<R: HasLength> HasLength for BufReader<R> {
}
}
impl HasLength for File {
impl HasLength for std::fs::File {
fn len(&self) -> u64 {
self.metadata().unwrap().len()
}