mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 10:58:28 +00:00
Use fs_err
in more places (#644)
This commit is contained in:
parent
4fd69c74b6
commit
e0127581b6
3 changed files with 5 additions and 5 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue