1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 19:17:43 +00:00

Merge pull request #938 from frewsxcv/warnings

Address a few warnings.
This commit is contained in:
Jian Zeng 2016-08-05 21:36:24 +08:00 committed by GitHub
commit 5c97e652a0
2 changed files with 2 additions and 4 deletions

View file

@ -1,7 +1,7 @@
extern crate libc;
use std::io::Write;
use std::path::{Path, PathBuf};
use std::path::Path;
/// Takes a user-supplied string and tries to parse to u16 mode bitmask.
pub fn parse(mode_string: &str, considering_dir: bool) -> Result<libc::mode_t, String> {
@ -68,7 +68,7 @@ mod chmod_rs {
_ => unreachable!()
})
}
Err(err) => Err(String::from("numeric parsing error"))
Err(_) => Err(String::from("numeric parsing error"))
}
}
}

View file

@ -10,8 +10,6 @@ use self::libc::{
};
pub use self::libc::passwd as c_passwd;
#[cfg(any(target_os = "macos", target_os = "freebsd"))]
use self::libc::time_t;
#[cfg(target_os = "macos")]
use self::libc::int32_t;