diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2017-11-09 12:36:16 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-11-09 12:43:23 +0100 |
commit | 954b2cc3d882ddec8a93a9ce2be2a20e11507bec (patch) | |
tree | 488aa643a887431e3fa9567962f70b3dafa32243 /components/style/gecko/generated/pseudo_element_definition.rs | |
parent | ae5dca985ee58fbcd18d7e470184beb2b7e3d547 (diff) | |
download | servo-954b2cc3d882ddec8a93a9ce2be2a20e11507bec.tar.gz servo-954b2cc3d882ddec8a93a9ce2be2a20e11507bec.zip |
Allow unused imports for AsciiExt in style code.
See #19128, this part is cherry-picked so Gecko can build with rust nightly.
Diffstat (limited to 'components/style/gecko/generated/pseudo_element_definition.rs')
-rw-r--r-- | components/style/gecko/generated/pseudo_element_definition.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/style/gecko/generated/pseudo_element_definition.rs b/components/style/gecko/generated/pseudo_element_definition.rs index c733234b364..4a18723ec85 100644 --- a/components/style/gecko/generated/pseudo_element_definition.rs +++ b/components/style/gecko/generated/pseudo_element_definition.rs @@ -1377,7 +1377,7 @@ impl PseudoElement { /// Returns `None` if the pseudo-element is not recognised. #[inline] pub fn from_slice(s: &str, in_ua_stylesheet: bool) -> Option<Self> { - use std::ascii::AsciiExt; + #[allow(unused_imports)] use std::ascii::AsciiExt; // We don't need to support tree pseudos because functional // pseudo-elements needs arguments, and thus should be created @@ -1747,7 +1747,7 @@ impl PseudoElement { /// Returns `None` if the pseudo-element is not recognized. #[inline] pub fn tree_pseudo_element(name: &str, args: Box<[Atom]>) -> Option<Self> { - use std::ascii::AsciiExt; + #[allow(unused_imports)] use std::ascii::AsciiExt; debug_assert!(name.starts_with("-moz-tree-")); let tree_part = &name[10..]; if tree_part.eq_ignore_ascii_case("column") { |