Skip to content

Commit

Permalink
Remove more unnecessary imports (#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
djc authored Mar 21, 2024
1 parent 69eed50 commit 124821e
Show file tree
Hide file tree
Showing 13 changed files with 0 additions and 15 deletions.
1 change: 0 additions & 1 deletion html5ever/examples/noop-tokenize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

extern crate html5ever;

use std::default::Default;
use std::io;

use html5ever::tendril::*;
Expand Down
1 change: 0 additions & 1 deletion html5ever/examples/noop-tree-builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ extern crate html5ever;

use std::borrow::Cow;
use std::collections::HashMap;
use std::default::Default;
use std::io;

use html5ever::parse_document;
Expand Down
1 change: 0 additions & 1 deletion html5ever/examples/print-tree-actions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ extern crate html5ever;

use std::borrow::Cow;
use std::collections::HashMap;
use std::default::Default;
use std::io;

use html5ever::parse_document;
Expand Down
1 change: 0 additions & 1 deletion html5ever/examples/tokenize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

extern crate html5ever;

use std::default::Default;
use std::io;

use html5ever::tendril::*;
Expand Down
1 change: 0 additions & 1 deletion html5ever/src/serialize/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
use log::warn;
pub use markup5ever::serialize::{AttrRef, Serialize, Serializer, TraversalScope};
use markup5ever::{local_name, namespace_url, ns};
use std::default::Default;
use std::io::{self, Write};

use crate::{LocalName, QualName};
Expand Down
1 change: 0 additions & 1 deletion html5ever/src/tree_builder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ use crate::tokenizer::{Doctype, EndTag, StartTag, Tag, TokenSink, TokenSinkResul

use std::borrow::Cow::Borrowed;
use std::collections::VecDeque;
use std::default::Default;
use std::iter::{Enumerate, Rev};
use std::mem::replace;
use std::{fmt, slice};
Expand Down
2 changes: 0 additions & 2 deletions rcdom/examples/hello_xml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
extern crate markup5ever_rcdom as rcdom;
extern crate xml5ever;

use std::default::Default;

use rcdom::{NodeData, RcDom};
use xml5ever::driver::parse_document;
use xml5ever::tendril::TendrilSink;
Expand Down
1 change: 0 additions & 1 deletion rcdom/examples/html2html.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
extern crate html5ever;
extern crate markup5ever_rcdom as rcdom;

use std::default::Default;
use std::io::{self, Write};

use html5ever::driver::ParseOpts;
Expand Down
1 change: 0 additions & 1 deletion rcdom/examples/print-rcdom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
extern crate html5ever;
extern crate markup5ever_rcdom as rcdom;

use std::default::Default;
use std::io;

use html5ever::parse_document;
Expand Down
2 changes: 0 additions & 2 deletions rcdom/examples/xml_tree_printer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
extern crate markup5ever_rcdom as rcdom;
extern crate xml5ever;

use std::default::Default;
use std::io;
use std::string::String;

use rcdom::{Handle, NodeData, RcDom};
use xml5ever::driver::parse_document;
Expand Down
1 change: 0 additions & 1 deletion rcdom/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ extern crate tendril;
use std::borrow::Cow;
use std::cell::{Cell, RefCell};
use std::collections::{HashSet, VecDeque};
use std::default::Default;
use std::fmt;
use std::io;
use std::mem;
Expand Down
1 change: 0 additions & 1 deletion rcdom/tests/html-tokenizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ use html5ever::{namespace_url, ns, Attribute, LocalName, QualName};
use rustc_test::{DynTestFn, DynTestName, TestDesc, TestDescAndFn};
use serde_json::{Map, Value};
use std::borrow::Cow;
use std::default::Default;
use std::ffi::OsStr;
use std::io::Read;
use std::fs::File;
Expand Down
1 change: 0 additions & 1 deletion rcdom/tests/html-tree-builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ mod foreach_html5lib_test;
use foreach_html5lib_test::foreach_html5lib_test;

use std::collections::{HashMap, HashSet};
use std::default::Default;
use std::ffi::OsStr;
use std::io::BufRead;
use std::iter::repeat;
Expand Down

0 comments on commit 124821e

Please sign in to comment.