chore(lib): fix nightly unused warning about AsciiExt

This commit is contained in:
Sean McArthur
2017-11-06 17:58:12 -08:00
parent 40de599b58
commit 19caf54edd
6 changed files with 6 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
use std::fmt;
use std::borrow::Cow;
use std::str::FromStr;
#[allow(unused)]
use std::ascii::AsciiExt;
use mime::Mime;

View File

@@ -142,6 +142,7 @@ macro_rules! test_header {
($id:ident, $raw:expr) => {
#[test]
fn $id() {
#[allow(unused)]
use std::ascii::AsciiExt;
let raw = $raw;
let a: Vec<Vec<u8>> = raw.iter().map(|x| x.to_vec()).collect();

View File

@@ -1,4 +1,5 @@
use std::fmt;
#[allow(unused)]
use std::ascii::AsciiExt;
use header::{Header, Raw, parsing};

View File

@@ -1,4 +1,5 @@
use std::fmt;
#[allow(unused)]
use std::ascii::AsciiExt;
use header::{Header, Raw, parsing};

View File

@@ -1,5 +1,6 @@
use std::fmt::{self, Display};
use std::str::FromStr;
#[allow(unused)]
use std::ascii::AsciiExt;
use self::Charset::*;

View File

@@ -1,3 +1,4 @@
#[allow(unused)]
use std::ascii::AsciiExt;
use std::cmp;
use std::default::Default;