Skip to content

Commit bb072d5

Browse files
author
bors-servo
authored
Auto merge of #326 - servo:asciiext, r=jdm
Silence denied "unused imports" warning on Nigthly
2 parents d3c4868 + 83ab398 commit bb072d5

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

html5ever/src/tokenizer/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use self::char_ref::{CharRef, CharRefTokenizer};
2323

2424
use util::str::lower_ascii_letter;
2525

26-
use std::ascii::AsciiExt;
26+
#[allow(unused_imports)] use std::ascii::AsciiExt;
2727
use std::mem::replace;
2828
use std::default::Default;
2929
use std::borrow::Cow::{self, Borrowed};

html5ever/src/tree_builder/data.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use interface::{QuirksMode, Quirks, LimitedQuirks, NoQuirks};
1111
use tendril::StrTendril;
1212
use tokenizer::Doctype;
13-
use std::ascii::AsciiExt;
13+
#[allow(unused_imports)] use std::ascii::AsciiExt;
1414

1515
// These should all be lowercase, for ASCII-case-insensitive matching.
1616
static QUIRKY_PUBLIC_PREFIXES: &'static [&'static str] = &[

html5ever/src/tree_builder/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ use tokenizer::states as tok_state;
2727
use util::str::is_ascii_whitespace;
2828

2929
use std::{slice, fmt};
30-
use std::ascii::AsciiExt;
30+
#[allow(unused_imports)] use std::ascii::AsciiExt;
3131
use std::borrow::Cow::Borrowed;
3232
use std::collections::VecDeque;
3333
use std::default::Default;

markup5ever/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ extern crate rustc_serialize;
1414
use rustc_serialize::json::{Json, Decoder};
1515
use rustc_serialize::Decodable;
1616
use std::collections::HashMap;
17-
use std::ascii::AsciiExt;
17+
#[allow(unused_imports)] use std::ascii::AsciiExt;
1818
use std::env;
1919
use std::fs::File;
2020
use std::io::{Write, BufWriter, BufReader, BufRead};

markup5ever/interface/tree_builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
/// Adjacent sibling text nodes are merged into a single node, so
1313
/// the sink may not want to allocate a `Handle` for each.
1414
15-
use std::ascii::AsciiExt;
15+
#[allow(unused_imports)] use std::ascii::AsciiExt;
1616
use std::borrow::Cow;
1717
use tendril::StrTendril;
1818
use interface::{QualName, ExpandedName, Attribute};

markup5ever/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pub use util::smallcharset::SmallCharSet;
4141
#[cfg(test)]
4242
#[allow(non_snake_case)]
4343
mod test {
44-
use std::ascii::AsciiExt;
44+
#[allow(unused_imports)] use std::ascii::AsciiExt;
4545
use tendril::SliceExt;
4646

4747
use super::util::buffer_queue::{BufferQueue, FromSet, NotFromSet};

xml5ever/src/tokenizer/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pub use {Prefix, LocalName, Namespace};
2121

2222
use {Attribute, QualName, SmallCharSet, buffer_queue};
2323
use std::borrow::Cow::{self, Borrowed};
24-
use std::ascii::AsciiExt;
24+
#[allow(unused_imports)] use std::ascii::AsciiExt;
2525
use std::collections::{BTreeMap};
2626
use std::mem::replace;
2727
use tendril::StrTendril;

0 commit comments

Comments
 (0)