Skip to content

Commit b8b6fe1

Browse files
committed
fix: fix test problem
1 parent 3ce3ee1 commit b8b6fe1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/loader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ fn load_file(fname: &str, buf: &mut [u8]) -> Result<usize, axio::Error> {
3535
ax_println!("app: {}", fname);
3636
let ctx = ROOT_FS_CONTEXT.get().expect("Root FS not initialized");
3737
let file = axfs::File::open(ctx, fname).map_err(|_| axio::Error::NotFound)?;
38-
let n = (&file).read(buf)?;
38+
let n = file.read(buf)?;
3939
Ok(n)
4040
}

0 commit comments

Comments
 (0)