Remove a lot of unused imports

This commit is contained in:
Anthony Ramine 2017-05-20 15:23:19 +02:00
parent 90bae7f802
commit 00bfc6b172
23 changed files with 56 additions and 122 deletions

View file

@ -5,7 +5,6 @@
use app_units::Au;
use style::attr::{AttrValue, LengthOrPercentageOrAuto, parse_length};
use style::values::computed::CalcLengthOrPercentage;
use style_traits::values::specified::AllowedLengthType;
#[test]
fn test_length_calc() {

View file

@ -6,7 +6,7 @@
fn smoke_restyle_hints() {
use cssparser::Parser;
use selectors::parser::SelectorList;
use style::restyle_hints::{DependencySet, RESTYLE_LATER_SIBLINGS};
use style::restyle_hints::DependencySet;
use style::selector_parser::SelectorParser;
use style::stylesheets::{Origin, Namespaces};
let namespaces = Namespaces::default();

View file

@ -212,7 +212,7 @@ fn test_insert() {
#[test]
fn test_get_universal_rules() {
thread_state::initialize(thread_state::LAYOUT);
let (map, shared_lock) = get_mock_map(&["*|*", "#foo > *|*", "*|* > *|*", ".klass", "#id"]);
let (map, _shared_lock) = get_mock_map(&["*|*", "#foo > *|*", "*|* > *|*", ".klass", "#id"]);
let decls = map.get_universal_rules(CascadeLevel::UserNormal);