aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/style
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/style')
-rw-r--r--tests/unit/style/attr.rs1
-rw-r--r--tests/unit/style/restyle_hints.rs2
-rw-r--r--tests/unit/style/stylist.rs2
3 files changed, 2 insertions, 3 deletions
diff --git a/tests/unit/style/attr.rs b/tests/unit/style/attr.rs
index 25fe085a637..6bf72a5b969 100644
--- a/tests/unit/style/attr.rs
+++ b/tests/unit/style/attr.rs
@@ -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() {
diff --git a/tests/unit/style/restyle_hints.rs b/tests/unit/style/restyle_hints.rs
index b2e2cf3e999..c50cfcc87bb 100644
--- a/tests/unit/style/restyle_hints.rs
+++ b/tests/unit/style/restyle_hints.rs
@@ -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();
diff --git a/tests/unit/style/stylist.rs b/tests/unit/style/stylist.rs
index 3c136edcef3..42fc3a8f6a0 100644
--- a/tests/unit/style/stylist.rs
+++ b/tests/unit/style/stylist.rs
@@ -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);