From 052d5f0bc52997b0f48a83bc01d4679839639fe3 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Mon, 26 Mar 2018 16:12:25 -0700 Subject: [PATCH] silence AsciiExt deprecation warn --- src/header/common/mod.rs | 2 +- src/header/shared/charset.rs | 3 ++- src/header/shared/quality_item.rs | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/header/common/mod.rs b/src/header/common/mod.rs index 12f7f4d76..0b340c9e8 100644 --- a/src/header/common/mod.rs +++ b/src/header/common/mod.rs @@ -73,7 +73,7 @@ macro_rules! test_header { ($id:ident, $raw:expr) => { #[test] fn $id() { - #[allow(unused)] + #[allow(unused, deprecated)] use std::ascii::AsciiExt; use test; let raw = $raw; diff --git a/src/header/shared/charset.rs b/src/header/shared/charset.rs index f3d3f06f4..765b34afa 100644 --- a/src/header/shared/charset.rs +++ b/src/header/shared/charset.rs @@ -1,6 +1,7 @@ -#![allow(unused)] +#![allow(unused, deprecated)] use std::fmt::{self, Display}; use std::str::FromStr; +use std::ascii::AsciiExt; use self::Charset::*; diff --git a/src/header/shared/quality_item.rs b/src/header/shared/quality_item.rs index efece72c8..aa56866ac 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;