diff --git a/src/install/mode.rs b/src/install/mode.rs index 57040cd4d..fefb498fc 100644 --- a/src/install/mode.rs +++ b/src/install/mode.rs @@ -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 { @@ -68,7 +68,7 @@ mod chmod_rs { _ => unreachable!() }) } - Err(err) => Err(String::from("numeric parsing error")) + Err(_) => Err(String::from("numeric parsing error")) } } } diff --git a/src/uucore/c_types.rs b/src/uucore/c_types.rs index 89169979b..ce5b7426b 100644 --- a/src/uucore/c_types.rs +++ b/src/uucore/c_types.rs @@ -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;