Skip to content

Commit

Permalink
fix compile error in read test
Browse files Browse the repository at this point in the history
  • Loading branch information
tsatke committed Jun 24, 2024
1 parent fad9028 commit 5218541
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ext2/tests/read.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
use ext2::{DirType, Ext2Fs, RegularFile, Type};
use filesystem::MemoryBlockDevice;
use std::env;
use std::fs::File;
use std::io::Read;

use ext2::{DirType, Ext2Fs, RegularFile, Type};
use filesystem::MemoryBlockDevice;

#[test]
fn test_list_directory() {
do_test_list_directory(512);
Expand Down Expand Up @@ -59,7 +60,7 @@ fn do_test_list_directory(sector_size: usize) {
assert!(entries
.iter()
.find(|&entry| {
entry.inode().unwrap().get() == inode
entry.inode().get() == inode
&& entry.name().is_some_and(|n| n == name)
&& entry.typ() == Some(typ)
})
Expand Down

0 comments on commit 5218541

Please sign in to comment.