File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -600,7 +600,7 @@ mod tests {
600600
601601 dir. remove ( OsStr :: new ( "file1.txt" ) ) ;
602602 assert_eq ! ( dir. entries. len( ) , 1 ) ;
603- assert ! ( dir. entries. get ( OsStr :: new( "file1.txt" ) ) . is_none ( ) ) ;
603+ assert ! ( ! dir. entries. contains_key ( OsStr :: new( "file1.txt" ) ) ) ;
604604
605605 dir. remove ( OsStr :: new ( "nonexistent" ) ) ; // Should be no-op
606606 assert_eq ! ( dir. entries. len( ) , 1 ) ;
@@ -635,7 +635,7 @@ mod tests {
635635 Some ( Inode :: Directory ( d) ) => {
636636 assert_eq ! ( d. stat. st_mtim_sec, 90 ) ; // Stat updated
637637 assert_eq ! ( d. entries. len( ) , 1 ) ; // Inner file preserved
638- assert ! ( d. entries. get ( OsStr :: new( "inner_file" ) ) . is_some ( ) ) ;
638+ assert ! ( d. entries. contains_key ( OsStr :: new( "inner_file" ) ) ) ;
639639 }
640640 _ => panic ! ( "Expected directory after merge" ) ,
641641 }
You can’t perform that action at this time.
0 commit comments