File tree 1 file changed +3
-4
lines changed 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -404,7 +404,6 @@ fn getgroups() -> nix::Result<Vec<Gid>> {
404
404
405
405
#[ cfg( unix) ]
406
406
fn os_access ( path : PyStringRef , mode : u8 , vm : & VirtualMachine ) -> PyResult < bool > {
407
-
408
407
use std:: os:: unix:: fs:: MetadataExt ;
409
408
410
409
let path = path. as_str ( ) ;
@@ -814,10 +813,10 @@ fn os_stat(
814
813
use std:: os:: linux:: fs:: MetadataExt ;
815
814
#[ cfg( target_os = "macos" ) ]
816
815
use std:: os:: macos:: fs:: MetadataExt ;
817
- #[ cfg( target_os = "redox" ) ]
818
- use std:: os:: redox:: fs:: MetadataExt ;
819
816
#[ cfg( target_os = "openbsd" ) ]
820
817
use std:: os:: openbsd:: fs:: MetadataExt ;
818
+ #[ cfg( target_os = "redox" ) ]
819
+ use std:: os:: redox:: fs:: MetadataExt ;
821
820
822
821
let get_stats = move || -> io:: Result < PyObjectRef > {
823
822
let meta = match file {
@@ -1312,7 +1311,7 @@ fn os_urandom(size: usize, vm: &VirtualMachine) -> PyResult<Vec<u8>> {
1312
1311
}
1313
1312
}
1314
1313
1315
- #[ cfg( any( target_os = "linux" , target_os = "openbsd" ) ) ]
1314
+ #[ cfg( any( target_os = "linux" , target_os = "openbsd" ) ]
1316
1315
type ModeT = u32 ;
1317
1316
1318
1317
#[ cfg( target_os = "macos" ) ]
You can’t perform that action at this time.
0 commit comments