diff options
Diffstat (limited to 'src/libstd/sys/unix/fs2.rs')
| -rw-r--r-- | src/libstd/sys/unix/fs2.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/sys/unix/fs2.rs b/src/libstd/sys/unix/fs2.rs index 92a47c6c385..d77e76241cc 100644 --- a/src/libstd/sys/unix/fs2.rs +++ b/src/libstd/sys/unix/fs2.rs @@ -86,6 +86,7 @@ impl FilePermissions { self.mode |= 0o222; } } + pub fn mode(&self) -> i32 { self.mode as i32 } } impl FromInner<i32> for FilePermissions { |
