File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,9 @@ impl Permissions {
49
49
#[ allow( clippy:: unnecessary_wraps) ]
50
50
fn _into_std ( self , _file : & fs:: File ) -> io:: Result < fs:: Permissions > {
51
51
use std:: os:: unix:: fs:: PermissionsExt ;
52
- Ok ( fs:: Permissions :: from_mode ( self . ext . mode ( ) ) )
52
+ Ok ( fs:: Permissions :: from_mode ( crate :: fs:: PermissionsExt :: mode (
53
+ & self . ext ,
54
+ ) ) )
53
55
}
54
56
55
57
#[ cfg( target_os = "wasi" ) ]
@@ -109,19 +111,19 @@ pub trait PermissionsExt {
109
111
impl PermissionsExt for Permissions {
110
112
#[ inline]
111
113
fn mode ( & self ) -> u32 {
112
- std :: os :: unix :: fs:: PermissionsExt :: mode ( & self . ext )
114
+ crate :: fs:: PermissionsExt :: mode ( & self . ext )
113
115
}
114
116
115
117
#[ inline]
116
118
fn set_mode ( & mut self , mode : u32 ) {
117
- std :: os :: unix :: fs:: PermissionsExt :: set_mode ( & mut self . ext , mode)
119
+ crate :: fs:: PermissionsExt :: set_mode ( & mut self . ext , mode)
118
120
}
119
121
120
122
#[ inline]
121
123
fn from_mode ( mode : u32 ) -> Self {
122
124
Self {
123
125
readonly : ImplPermissionsExt :: readonly ( mode as RawMode ) ,
124
- ext : std :: os :: unix :: fs:: PermissionsExt :: from_mode ( mode) ,
126
+ ext : crate :: fs:: PermissionsExt :: from_mode ( mode) ,
125
127
}
126
128
}
127
129
}
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ impl ImplPermissionsExt {
50
50
}
51
51
52
52
#[ cfg( not( target_os = "wasi" ) ) ]
53
- impl std :: os :: unix :: fs:: PermissionsExt for ImplPermissionsExt {
53
+ impl crate :: fs:: PermissionsExt for ImplPermissionsExt {
54
54
fn mode ( & self ) -> u32 {
55
55
self . mode as u32
56
56
}
You can’t perform that action at this time.
0 commit comments