From 6af6acf3f003aa39a95d7841a0550787b9498ebb Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Wed, 20 Mar 2024 23:27:52 +0100 Subject: [PATCH] Avoid warnings for duplicate imports --- html5ever/src/tokenizer/mod.rs | 1 - xml5ever/examples/simple_xml_tokenizer.rs | 1 - xml5ever/examples/xml_tokenizer.rs | 1 - xml5ever/src/tree_builder/mod.rs | 1 - 4 files changed, 4 deletions(-) diff --git a/html5ever/src/tokenizer/mod.rs b/html5ever/src/tokenizer/mod.rs index eb5c62d9..54d11855 100644 --- a/html5ever/src/tokenizer/mod.rs +++ b/html5ever/src/tokenizer/mod.rs @@ -28,7 +28,6 @@ use mac::format_if; use markup5ever::{namespace_url, ns, small_char_set}; use std::borrow::Cow::{self, Borrowed}; use std::collections::BTreeMap; -use std::default::Default; use std::mem::replace; pub use crate::buffer_queue::{BufferQueue, FromSet, NotFromSet, SetResult}; diff --git a/xml5ever/examples/simple_xml_tokenizer.rs b/xml5ever/examples/simple_xml_tokenizer.rs index de74432e..35dc8a38 100644 --- a/xml5ever/examples/simple_xml_tokenizer.rs +++ b/xml5ever/examples/simple_xml_tokenizer.rs @@ -12,7 +12,6 @@ extern crate markup5ever; extern crate xml5ever; -use std::default::Default; use std::io; use markup5ever::buffer_queue::BufferQueue; diff --git a/xml5ever/examples/xml_tokenizer.rs b/xml5ever/examples/xml_tokenizer.rs index fc3cbeff..46d683e3 100644 --- a/xml5ever/examples/xml_tokenizer.rs +++ b/xml5ever/examples/xml_tokenizer.rs @@ -12,7 +12,6 @@ extern crate markup5ever; extern crate xml5ever; -use std::default::Default; use std::io; use markup5ever::buffer_queue::BufferQueue; diff --git a/xml5ever/src/tree_builder/mod.rs b/xml5ever/src/tree_builder/mod.rs index a83e7dc9..4c10f8e2 100644 --- a/xml5ever/src/tree_builder/mod.rs +++ b/xml5ever/src/tree_builder/mod.rs @@ -18,7 +18,6 @@ use std::collections::btree_map::Iter; use std::collections::{BTreeMap, HashSet, VecDeque}; use std::fmt::{Debug, Error, Formatter}; use std::mem; -use std::result::Result; pub use self::interface::{NextParserState, NodeOrText, Tracer, TreeSink}; use self::types::*;