File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ impl Metadata {
44
44
pub fn is_dir ( & self ) -> bool {
45
45
#[ cfg( not( windows) ) ]
46
46
{
47
- ( self . 0 . st_mode & libc:: S_IFMT ) == libc:: S_IFDIR
47
+ ( self . 0 . st_mode as u32 & libc:: S_IFMT as u32 ) == libc:: S_IFDIR as u32
48
48
}
49
49
#[ cfg( windows) ]
50
50
self . 0 . is_dir ( )
@@ -133,7 +133,8 @@ impl Metadata {
133
133
pub fn is_executable ( & self ) -> bool {
134
134
#[ cfg( not( windows) ) ]
135
135
{
136
- ( self . 0 . st_mode & libc:: S_IFMT ) == libc:: S_IFREG && self . 0 . st_mode & libc:: S_IXUSR == libc:: S_IXUSR
136
+ ( self . 0 . st_mode as u32 & libc:: S_IFMT as u32 ) == libc:: S_IFREG as u32
137
+ && self . 0 . st_mode as u32 & libc:: S_IXUSR as u32 == libc:: S_IXUSR as u32
137
138
}
138
139
#[ cfg( windows) ]
139
140
gix_fs:: is_executable ( & self . 0 )
@@ -143,7 +144,7 @@ impl Metadata {
143
144
pub fn is_symlink ( & self ) -> bool {
144
145
#[ cfg( not( windows) ) ]
145
146
{
146
- ( self . 0 . st_mode & libc:: S_IFMT ) == libc:: S_IFLNK
147
+ ( self . 0 . st_mode as u32 & libc:: S_IFMT as u32 ) == libc:: S_IFLNK as u32
147
148
}
148
149
#[ cfg( windows) ]
149
150
self . 0 . is_symlink ( )
@@ -153,7 +154,7 @@ impl Metadata {
153
154
pub fn is_file ( & self ) -> bool {
154
155
#[ cfg( not( windows) ) ]
155
156
{
156
- ( self . 0 . st_mode & libc:: S_IFMT ) == libc:: S_IFREG
157
+ ( self . 0 . st_mode as u32 & libc:: S_IFMT as u32 ) == libc:: S_IFREG as u32
157
158
}
158
159
#[ cfg( windows) ]
159
160
self . 0 . is_file ( )
You can’t perform that action at this time.
0 commit comments