File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -367,7 +367,7 @@ where
367367 // The list of all mounted filesystems.
368368 let mounts_result = read_fs_list ( ) ;
369369
370- let ( mounts, use_fallback ) = match mounts_result {
370+ let ( mounts, _use_fallback ) = match mounts_result {
371371 Ok ( m) => ( m, false ) ,
372372 Err ( e) => {
373373 if opt. requires_mount_table ( ) {
@@ -387,7 +387,7 @@ where
387387 // both the mount information and usage information.
388388 for path in paths {
389389 #[ cfg( unix) ]
390- let fs_result = if use_fallback {
390+ let fs_result = if _use_fallback {
391391 Filesystem :: from_path_direct ( path)
392392 } else {
393393 Filesystem :: from_path ( & mounts, path)
Original file line number Diff line number Diff line change 88//! filesystem mounted at a particular directory. It also includes
99//! information on amount of space available and amount of space used.
1010// spell-checker:ignore canonicalized
11+ #[ cfg( unix) ]
1112use std:: io;
13+ #[ cfg( unix) ]
1214use std:: path:: PathBuf ;
1315use std:: { ffi:: OsString , path:: Path } ;
1416
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ use std::collections::HashSet;
1515#[ cfg( not( any( target_os = "freebsd" , target_os = "windows" ) ) ) ]
1616use uutests:: at_and_ucmd;
1717use uutests:: new_ucmd;
18+ #[ cfg( target_os = "linux" ) ]
1819use uutests:: util:: TestScenario ;
1920
2021#[ test]
You can’t perform that action at this time.
0 commit comments