diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index a708e9b6cc6..9e7f0e38f55 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -115,8 +115,8 @@ use style::restyle_hints::ElementSnapshot; use style::servo::Stylesheet; use task_source::dom_manipulation::DOMManipulationTask; use time; +use url::Url; use url::percent_encoding::percent_decode; -use url::{Host, Url}; use util::str::{DOMString, split_html_space_chars, str_join}; #[derive(JSTraceable, PartialEq, HeapSizeOf)] diff --git a/components/script/dom/stylesheetlist.rs b/components/script/dom/stylesheetlist.rs index d6c58256dc2..1b7eb643e50 100644 --- a/components/script/dom/stylesheetlist.rs +++ b/components/script/dom/stylesheetlist.rs @@ -40,7 +40,7 @@ impl StyleSheetListMethods for StyleSheetList { } // https://drafts.csswg.org/cssom/#dom-stylesheetlist-item - fn Item(&self, index: u32) -> Option> { + fn Item(&self, _index: u32) -> Option> { None //TODO Create a new StyleSheet object and return it } diff --git a/tests/unit/util/prefs.rs b/tests/unit/util/prefs.rs index bb0226a7d25..98bc35b4dc3 100644 --- a/tests/unit/util/prefs.rs +++ b/tests/unit/util/prefs.rs @@ -2,7 +2,7 @@ * 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/. */ -use util::prefs::{PrefValue, extend_prefs, read_prefs_from_file, get_pref, set_pref, reset_pref, reset_all_prefs}; +use util::prefs::{PrefValue, extend_prefs, read_prefs_from_file, get_pref, set_pref, reset_pref}; #[test] fn test_create_pref() {