1
0
mirror of https://github.com/sgmarz/osblog.git synced 2024-11-23 18:06:20 +04:00

Update syntax.

This commit is contained in:
Stephen Marz 2020-05-15 12:38:48 -04:00
parent 8a0c87a103
commit adcc06d07a

View File

@ -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;