mirror of
https://github.com/sgmarz/osblog.git
synced 2024-11-23 18:06:20 +04:00
Update syntax.
This commit is contained in:
parent
8a0c87a103
commit
adcc06d07a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user