diff options
Diffstat (limited to 'src/display.rs')
-rw-r--r-- | src/display.rs | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/display.rs b/src/display.rs index 227eda1..7c1b718 100644 --- a/src/display.rs +++ b/src/display.rs @@ -683,7 +683,7 @@ mod tests { dir.child("one.d").create_dir_all().unwrap(); dir.child("one.d/two").touch().unwrap(); dir.child("one.d/.hidden").touch().unwrap(); - let mut metas = Meta::from_path(Path::new(dir.path()), false) + let mut metas = Meta::from_path(Path::new(dir.path()), false, false) .unwrap() .recurse_into(42, &flags, None) .unwrap() @@ -716,7 +716,7 @@ mod tests { let dir = assert_fs::TempDir::new().unwrap(); dir.child("dir").create_dir_all().unwrap(); dir.child("dir/file").touch().unwrap(); - let metas = Meta::from_path(Path::new(dir.path()), false) + let metas = Meta::from_path(Path::new(dir.path()), false, false) .unwrap() .recurse_into(42, &flags, None) .unwrap() @@ -757,7 +757,7 @@ mod tests { let dir = assert_fs::TempDir::new().unwrap(); dir.child("dir").create_dir_all().unwrap(); dir.child("dir/file").touch().unwrap(); - let metas = Meta::from_path(Path::new(dir.path()), false) + let metas = Meta::from_path(Path::new(dir.path()), false, false) .unwrap() .recurse_into(42, &flags, None) .unwrap() @@ -797,7 +797,7 @@ mod tests { let dir = assert_fs::TempDir::new().unwrap(); dir.child("one.d").create_dir_all().unwrap(); dir.child("one.d/two").touch().unwrap(); - let metas = Meta::from_path(Path::new(dir.path()), false) + let metas = Meta::from_path(Path::new(dir.path()), false, false) .unwrap() .recurse_into(42, &flags, None) .unwrap() @@ -828,7 +828,7 @@ mod tests { let dir = assert_fs::TempDir::new().unwrap(); dir.child("testdir").create_dir_all().unwrap(); dir.child("test").touch().unwrap(); - let metas = Meta::from_path(Path::new(dir.path()), false) + let metas = Meta::from_path(Path::new(dir.path()), false, false) .unwrap() .recurse_into(1, &flags, None) .unwrap() @@ -862,7 +862,7 @@ mod tests { let dir = assert_fs::TempDir::new().unwrap(); dir.child("testdir").create_dir_all().unwrap(); - let metas = Meta::from_path(Path::new(dir.path()), false) + let metas = Meta::from_path(Path::new(dir.path()), false, false) .unwrap() .recurse_into(1, &flags, None) .unwrap() @@ -892,11 +892,11 @@ mod tests { let file_path = tmp_dir.path().join("file"); std::fs::File::create(&file_path).expect("failed to create the file"); - let file = Meta::from_path(&file_path, false).unwrap(); + let file = Meta::from_path(&file_path, false, false).unwrap(); let dir_path = tmp_dir.path().join("dir"); std::fs::create_dir(&dir_path).expect("failed to create the dir"); - let dir = Meta::from_path(&dir_path, false).unwrap(); + let dir = Meta::from_path(&dir_path, false, false).unwrap(); assert_eq!( display_folder_path(&dir), @@ -942,15 +942,15 @@ mod tests { let file_path = tmp_dir.path().join("file"); std::fs::File::create(&file_path).expect("failed to create the file"); - let file = Meta::from_path(&file_path, false).unwrap(); + let file = Meta::from_path(&file_path, false, false).unwrap(); let dir_path = tmp_dir.path().join("dir"); std::fs::create_dir(&dir_path).expect("failed to create the dir"); - let dir = Meta::from_path(&dir_path, false).unwrap(); + let dir = Meta::from_path(&dir_path, false, false).unwrap(); let link_path = tmp_dir.path().join("link"); std::os::unix::fs::symlink("dir", &link_path).unwrap(); - let link = Meta::from_path(&link_path, false).unwrap(); + let link = Meta::from_path(&link_path, false, false).unwrap(); let grid_flags = Flags { layout: Layout::Grid, |