diff --git a/components/style/matching.rs b/components/style/matching.rs index 2cd51352355..65dc0b6e1b0 100644 --- a/components/style/matching.rs +++ b/components/style/matching.rs @@ -6,7 +6,7 @@ #![allow(unsafe_code)] -use animation::{self, Animation}; +use animation; use arc_ptr_eq; use cache::{LRUCache, SimpleHashCache}; use context::{StyleContext, SharedStyleContext}; diff --git a/components/style/traversal.rs b/components/style/traversal.rs index d1cf9eb833b..e56db456dbf 100644 --- a/components/style/traversal.rs +++ b/components/style/traversal.rs @@ -12,7 +12,6 @@ use selector_impl::SelectorImplExt; use selectors::Element; use selectors::bloom::BloomFilter; use std::cell::RefCell; -use std::sync::Arc; use tid::tid; use util::opts; use values::HasViewportPercentage; diff --git a/components/style/values/specified/mod.rs b/components/style/values/specified/mod.rs index 3bede8228bc..5dd8bcc0bd4 100644 --- a/components/style/values/specified/mod.rs +++ b/components/style/values/specified/mod.rs @@ -1189,7 +1189,7 @@ pub struct UrlExtraData { impl UrlExtraData { #[cfg(feature = "servo")] - pub fn make_from(_context: &ParserContext) -> Option { + pub fn make_from(_: &ParserContext) -> Option { Some(UrlExtraData { }) } diff --git a/tests/unit/style/parsing/basic_shape.rs b/tests/unit/style/parsing/basic_shape.rs new file mode 100644 index 00000000000..d6a14edef08 --- /dev/null +++ b/tests/unit/style/parsing/basic_shape.rs @@ -0,0 +1,3 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ \ No newline at end of file