From 3f1d23934dd89583519b0ba917e2e2ad00912a99 Mon Sep 17 00:00:00 2001 From: Kevin K Date: Sun, 12 Nov 2017 12:50:52 -0500 Subject: [PATCH] chore: fixes the attribute to allow unused imports on nightly Closes #1095 --- src/app/settings.rs | 2 +- src/args/settings.rs | 2 +- src/completions/shell.rs | 2 +- src/completions/zsh.rs | 2 +- src/macros.rs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/settings.rs b/src/app/settings.rs index 5edb78433bc..707a765e426 100644 --- a/src/app/settings.rs +++ b/src/app/settings.rs @@ -1,5 +1,5 @@ // Std -#[cfg(not(feature = "nightly"))] +#[allow(unused_imports)] use std::ascii::AsciiExt; use std::str::FromStr; use std::ops::BitOr; diff --git a/src/args/settings.rs b/src/args/settings.rs index 377a1bbc3a5..7571bae2bfe 100644 --- a/src/args/settings.rs +++ b/src/args/settings.rs @@ -1,5 +1,5 @@ // Std -#[cfg(not(feature = "nightly"))] +#[allow(unused_imports)] use std::ascii::AsciiExt; use std::str::FromStr; diff --git a/src/completions/shell.rs b/src/completions/shell.rs index de972e1853a..d3d3da08ff1 100644 --- a/src/completions/shell.rs +++ b/src/completions/shell.rs @@ -1,4 +1,4 @@ -#[cfg(not(feature = "nightly"))] +#[allow(unused_imports)] use std::ascii::AsciiExt; use std::str::FromStr; use std::fmt; diff --git a/src/completions/zsh.rs b/src/completions/zsh.rs index 71cb257d5a3..7950705e1cb 100644 --- a/src/completions/zsh.rs +++ b/src/completions/zsh.rs @@ -1,7 +1,7 @@ // Std use std::io::Write; -#[cfg(not(feature = "nightly"))] +#[allow(unused_imports)] use std::ascii::AsciiExt; // Internal diff --git a/src/macros.rs b/src/macros.rs index 678bc065879..7f5300696f4 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -308,7 +308,7 @@ macro_rules! arg_enum { type Err = String; fn from_str(s: &str) -> ::std::result::Result { - #[cfg(not(feature = "nightly"))] + #[allow(unused_imports)] use ::std::ascii::AsciiExt; match s { $(stringify!($v) |