Skip to content

Commit

Permalink
Merge pull request #1242 from guangie88/allow-deprecated
Browse files Browse the repository at this point in the history
Allow deprecated to remove warnings for rustc 1.26 onwards
  • Loading branch information
kbknapp authored Apr 4, 2018
2 parents d51d35d + b04a3b9 commit c8fed27
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 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
#[allow(unused_imports)]
#[allow(deprecated, unused_imports)]
use std::ascii::AsciiExt;
use std::str::FromStr;
use std::ops::BitOr;
Expand Down
2 changes: 1 addition & 1 deletion src/app/validator.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// std
use std::fmt::Display;
#[allow(unused_imports)]
#[allow(deprecated, unused_imports)]
use std::ascii::AsciiExt;

// Internal
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
#[allow(unused_imports)]
#[allow(deprecated, 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 @@
#[allow(unused_imports)]
#[allow(deprecated, 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,6 +1,6 @@
// Std
use std::io::Write;
#[allow(unused_imports)]
#[allow(deprecated, 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 @@ -314,7 +314,7 @@ macro_rules! arg_enum {
type Err = String;

fn from_str(s: &str) -> ::std::result::Result<Self,Self::Err> {
#[allow(unused_imports)]
#[allow(deprecated, unused_imports)]
use ::std::ascii::AsciiExt;
match s {
$(stringify!($v) |
Expand Down
2 changes: 1 addition & 1 deletion tests/possible_values.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ extern crate regex;

include!("../clap-test.rs");

#[allow(unused_imports)]
#[allow(deprecated, unused_imports)]
use std::ascii::AsciiExt;

use clap::{App, Arg, ErrorKind};
Expand Down

0 comments on commit c8fed27

Please sign in to comment.