Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix typo get openoptions function name
Co-authored-by: Ivan Tham <[email protected]>
  • Loading branch information
FedericoPonzi and pickfire authored Aug 30, 2020
commit eb3906be4ad375cc6b83cd6a6e0116817db22575
2 changes: 1 addition & 1 deletion library/std/src/sys/unix/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -963,7 +963,7 @@ pub fn rename(old: &Path, new: &Path) -> io::Result<()> {
Ok(())
}

pub fn get_openopetions_as_cint(from: OpenOptions) -> io::Result<libc::c_int> {
pub fn get_openoptions_as_cint(from: OpenOptions) -> io::Result<libc::c_int> {
let access_mode = from.get_access_mode()?;
let creation_mode = from.get_creation_mode()?;
Ok(creation_mode | access_mode)
Expand Down