aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2017-05-20 11:34:36 -0500
committerGitHub <noreply@github.com>2017-05-20 11:34:36 -0500
commit4f0b24ac0c3bd04104d705898ceb4d06ef5ea092 (patch)
tree327c2f52b3ebb36996f21cc20a57f2f361885691 /tests
parent3ca7f4fc9296c2dd53e644ac25ddaa6411147d24 (diff)
parent00bfc6b1721e3587243806cdb0a0939bc5dc96fb (diff)
downloadservo-4f0b24ac0c3bd04104d705898ceb4d06ef5ea092.tar.gz
servo-4f0b24ac0c3bd04104d705898ceb4d06ef5ea092.zip
Auto merge of #16960 - servo:derive-all-the-things, r=emilio
Derive HasViewportPercentage 🍷 <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16960) <!-- Reviewable:end -->
Diffstat (limited to 'tests')
-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);