From adcc06d07a4abc49b8b5169c57ba5eb2b46567f4 Mon Sep 17 00:00:00 2001 From: Stephen Marz Date: Fri, 15 May 2020 12:38:48 -0400 Subject: [PATCH] Update syntax. --- risc_v/src/test.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;