diff --git a/components/script/parse/html.rs b/components/script/parse/html.rs
index 8804010d4ba..dc201402a61 100644
--- a/components/script/parse/html.rs
+++ b/components/script/parse/html.rs
@@ -25,7 +25,6 @@ use dom::processinginstruction::ProcessingInstruction;
use dom::servohtmlparser;
use dom::servohtmlparser::{FragmentContext, ServoHTMLParser};
use dom::text::Text;
-use encoding::types::Encoding;
use html5ever::Attribute;
use html5ever::serialize::TraversalScope;
use html5ever::serialize::TraversalScope::{ChildrenOnly, IncludeNode};