From bc9283e8f881e6343ae76f3aa144e0559057632c Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Tue, 3 Apr 2018 14:24:54 -0700 Subject: [PATCH] chore(header): allow deprecated AsciiExt usage --- src/header/common/link.rs | 2 +- src/header/common/pragma.rs | 2 +- src/header/common/referrer_policy.rs | 2 +- src/header/shared/charset.rs | 2 +- src/header/shared/quality_item.rs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/header/common/link.rs b/src/header/common/link.rs index dbdfdf9ea7..adb4defc52 100644 --- a/src/header/common/link.rs +++ b/src/header/common/link.rs @@ -1,7 +1,7 @@ use std::fmt; use std::borrow::Cow; use std::str::FromStr; -#[allow(unused)] +#[allow(unused, deprecated)] use std::ascii::AsciiExt; use mime::Mime; diff --git a/src/header/common/pragma.rs b/src/header/common/pragma.rs index a6dcd63d01..97115d3901 100644 --- a/src/header/common/pragma.rs +++ b/src/header/common/pragma.rs @@ -1,5 +1,5 @@ use std::fmt; -#[allow(unused)] +#[allow(unused, deprecated)] use std::ascii::AsciiExt; use header::{Header, Raw, parsing}; diff --git a/src/header/common/referrer_policy.rs b/src/header/common/referrer_policy.rs index 520ec4c554..599f4291ad 100644 --- a/src/header/common/referrer_policy.rs +++ b/src/header/common/referrer_policy.rs @@ -1,5 +1,5 @@ use std::fmt; -#[allow(unused)] +#[allow(unused, deprecated)] use std::ascii::AsciiExt; use header::{Header, Raw, parsing}; diff --git a/src/header/shared/charset.rs b/src/header/shared/charset.rs index 758a75c255..71414fffe7 100644 --- a/src/header/shared/charset.rs +++ b/src/header/shared/charset.rs @@ -1,6 +1,6 @@ use std::fmt::{self, Display}; use std::str::FromStr; -#[allow(unused)] +#[allow(unused, deprecated)] use std::ascii::AsciiExt; use self::Charset::*; diff --git a/src/header/shared/quality_item.rs b/src/header/shared/quality_item.rs index 2b3dc578ce..610145c322 100644 --- a/src/header/shared/quality_item.rs +++ b/src/header/shared/quality_item.rs @@ -1,4 +1,4 @@ -#[allow(unused)] +#[allow(unused, deprecated)] use std::ascii::AsciiExt; use std::cmp; use std::default::Default;