Skip to content

Commit

Permalink
don't need extern crate anymore with rust 2018
Browse files Browse the repository at this point in the history
  • Loading branch information
utkarshkukreti committed Oct 18, 2020
1 parent 8e2bb33 commit 968ffd4
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ open an issue or send me an email.
### from [`examples/stackoverflow.rs`](examples/stackoverflow.rs)

```rust
extern crate select;

use select::document::Document;
use select::predicate::{Predicate, Attr, Class, Name};

Expand Down
1 change: 0 additions & 1 deletion examples/stackoverflow.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
extern crate select;
use select::document::Document;
use select::predicate::{Attr, Class, Name, Predicate};

Expand Down
4 changes: 0 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
extern crate bit_set;
extern crate html5ever;
extern crate markup5ever_rcdom;

pub mod document;
pub mod node;
pub mod predicate;
Expand Down
2 changes: 0 additions & 2 deletions tests/document_tests.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
#![allow(clippy::many_single_char_names)]
pub use std::collections::HashMap;

extern crate select;
pub use select::document::Document;
pub use select::node;

extern crate speculate;
use speculate::speculate;

speculate! {
Expand Down
2 changes: 0 additions & 2 deletions tests/node_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@

pub use std::collections::HashMap;

extern crate select;
pub use select::document::Document;
pub use select::node;

extern crate speculate;
use speculate::speculate;

speculate! {
Expand Down
2 changes: 0 additions & 2 deletions tests/predicate_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@
clippy::many_single_char_names
)]

extern crate select;
pub use select::document::Document;
pub use select::node;
pub use select::predicate::*;

extern crate speculate;
use speculate::speculate;

speculate! {
Expand Down
2 changes: 0 additions & 2 deletions tests/selection_tests.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
extern crate select;
pub use select::document::Document;
pub use select::selection::*;

extern crate speculate;
use speculate::speculate;

speculate! {
Expand Down

0 comments on commit 968ffd4

Please sign in to comment.