Skip to content

Commit

Permalink
Merge pull request clap-rs#1102 from kbknapp/issue-1095-take2
Browse files Browse the repository at this point in the history
chore: fixes the attribute to allow unused imports on nightly
  • Loading branch information
kbknapp committed Nov 12, 2017
2 parents 6cd43c2 + 3f1d239 commit 528a7cb
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/app/settings.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Std
#[cfg(not(feature = "nightly"))]
#[allow(unused_imports)]
use std::ascii::AsciiExt;
use std::str::FromStr;
use std::ops::BitOr;
Expand Down
2 changes: 1 addition & 1 deletion src/args/settings.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Std
#[cfg(not(feature = "nightly"))]
#[allow(unused_imports)]
use std::ascii::AsciiExt;
use std::str::FromStr;

Expand Down
2 changes: 1 addition & 1 deletion src/completions/shell.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#[cfg(not(feature = "nightly"))]
#[allow(unused_imports)]
use std::ascii::AsciiExt;
use std::str::FromStr;
use std::fmt;
Expand Down
2 changes: 1 addition & 1 deletion src/completions/zsh.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

// Std
use std::io::Write;
#[cfg(not(feature = "nightly"))]
#[allow(unused_imports)]
use std::ascii::AsciiExt;

// Internal
Expand Down
2 changes: 1 addition & 1 deletion src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ macro_rules! arg_enum {
type Err = String;

fn from_str(s: &str) -> ::std::result::Result<Self,Self::Err> {
#[cfg(not(feature = "nightly"))]
#[allow(unused_imports)]
use ::std::ascii::AsciiExt;
match s {
$(stringify!($v) |
Expand Down

0 comments on commit 528a7cb

Please sign in to comment.