We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ce3ee1 commit b8b6fe1Copy full SHA for b8b6fe1
src/loader.rs
@@ -35,6 +35,6 @@ fn load_file(fname: &str, buf: &mut [u8]) -> Result<usize, axio::Error> {
35
ax_println!("app: {}", fname);
36
let ctx = ROOT_FS_CONTEXT.get().expect("Root FS not initialized");
37
let file = axfs::File::open(ctx, fname).map_err(|_| axio::Error::NotFound)?;
38
- let n = (&file).read(buf)?;
+ let n = file.read(buf)?;
39
Ok(n)
40
}
0 commit comments