From e3fedddd1746e844f7e049a9fbdd435ee13826f9 Mon Sep 17 00:00:00 2001 From: king6cong Date: Tue, 6 Feb 2018 14:30:10 +0800 Subject: [PATCH] remove nightly complier warnings --- src/cp/cp.rs | 2 +- src/od/od.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/cp/cp.rs b/src/cp/cp.rs index e2f6fe6bb..cdc834f36 100644 --- a/src/cp/cp.rs +++ b/src/cp/cp.rs @@ -46,7 +46,7 @@ use std::str::FromStr; use uucore::fs::{canonicalize, CanonicalizeMode}; use walkdir::WalkDir; #[cfg(target_os = "linux")] use std::os::unix::io::IntoRawFd; -use std::fs::File; +#[cfg(target_os = "linux")] use std::fs::File; use std::fs::OpenOptions; use filetime::FileTime; diff --git a/src/od/od.rs b/src/od/od.rs index 7584f1a57..03ba6a06d 100644 --- a/src/od/od.rs +++ b/src/od/od.rs @@ -105,8 +105,8 @@ fn create_getopts_options() -> getopts::Options { "limit dump to BYTES input bytes", "BYTES"); opts.optopt("", "endian", "byte order to use for multi-byte formats", "big|little"); opts.optopt("S", "strings", - ("output strings of at least BYTES graphic chars. 3 is assumed when \ - BYTES is not specified."), + "output strings of at least BYTES graphic chars. 3 is assumed when \ + BYTES is not specified.", "BYTES"); opts.optflagmulti("a", "", "named characters, ignoring high-order bit"); opts.optflagmulti("b", "", "octal bytes"); @@ -134,8 +134,8 @@ fn create_getopts_options() -> getopts::Options { opts.optmulti("t", "format", "select output format or formats", "TYPE"); opts.optflag("v", "output-duplicates", "do not use * to mark line suppression"); opts.optflagopt("w", "width", - ("output BYTES bytes per output line. 32 is implied when BYTES is not \ - specified."), + "output BYTES bytes per output line. 32 is implied when BYTES is not \ + specified.", "BYTES"); opts.optflag("", "help", "display this help and exit."); opts.optflag("", "version", "output version information and exit.");