Rollup merge of #22744 - alexcrichton:issue-22738, r=aturon
Currently we have a `set_mode` mutator, so this just adds the pairing of a `mode` accessor to read the value. Closes #22738
This commit is contained in:
commit
1f2b3ebd7b
3 changed files with 8 additions and 0 deletions
|
@ -90,6 +90,7 @@ impl FilePermissions {
|
|||
self.mode |= 0o222;
|
||||
}
|
||||
}
|
||||
pub fn mode(&self) -> i32 { self.mode as i32 }
|
||||
}
|
||||
|
||||
impl FromInner<i32> for FilePermissions {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue