diff --git a/risc_v/src/test.rs b/risc_v/src/test.rs index 30e5030..0ce94a4 100644 --- a/risc_v/src/test.rs +++ b/risc_v/src/test.rs @@ -15,7 +15,7 @@ pub fn test() { // a block device, init the filesystem. MinixFileSystem::init(BDEV); let file_to_read = "/helloworld.elf"; - let desc = MinixFileSystem::open(BDEV, &file_to_read).ok(); + let desc = MinixFileSystem::open(BDEV, file_to_read).ok(); if desc.is_none() { println!("Error reading {}", file_to_read); return;