Skip to content

Commit

Permalink
fix: impl on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveLauC committed Mar 25, 2024
1 parent cf0cc61 commit 620fcac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tokio/src/fs/file.rs
Expand Up @@ -552,7 +552,7 @@ impl File {
Ok(buf)
}
#[cfg(windows)]
fn _read_at(std: &StdFile, buf: &[u8], offset: u64) -> io::Result<Vec<u8>> {
fn _read_at(std: &StdFile, n: usize, offset: u64) -> io::Result<Vec<u8>> {
use std::os::windows::fs::FileExt;
let mut buf: Vec<u8> = vec![0; n];
let n_read = std.seek_read(&mut buf, offset)?;
Expand Down

0 comments on commit 620fcac

Please sign in to comment.