aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-11-28 08:19:38 +0100
committerMartin Fischer <martin@push-f.com>2021-11-29 15:10:29 +0100
commit6220082e9b03151f14f274a7458e79c8d6e1ad3e (patch)
tree3e1382280c7d083c6b06ea39e4655d419aeceb33
parent6ac6f3a65a15720fbfe89573c2392d063c25e82e (diff)
stop re-exporting Token & TagKind variants
-rw-r--r--examples/tokenize.rs5
-rw-r--r--src/tokenizer/mod.rs6
2 files changed, 6 insertions, 5 deletions
diff --git a/examples/tokenize.rs b/examples/tokenize.rs
index bea6a84..d70bfff 100644
--- a/examples/tokenize.rs
+++ b/examples/tokenize.rs
@@ -13,8 +13,9 @@ use std::default::Default;
use std::io;
use html5tokenizer::BufferQueue;
-use html5tokenizer::{CharacterTokens, EndTag, NullCharacterToken, StartTag, TagToken};
-use html5tokenizer::{ParseError, Token, TokenSink, TokenSinkResult, Tokenizer, TokenizerOpts};
+use html5tokenizer::TagKind::{EndTag, StartTag};
+use html5tokenizer::Token::{CharacterTokens, NullCharacterToken, ParseError, TagToken};
+use html5tokenizer::{Token, TokenSink, TokenSinkResult, Tokenizer, TokenizerOpts};
use io::Read;
#[derive(Copy, Clone)]
diff --git a/src/tokenizer/mod.rs b/src/tokenizer/mod.rs
index 0f6e376..b5d878b 100644
--- a/src/tokenizer/mod.rs
+++ b/src/tokenizer/mod.rs
@@ -9,9 +9,9 @@
//! The HTML5 tokenizer.
-pub use self::interface::{Attribute, Doctype, EndTag, StartTag, Tag, TagKind};
-pub use self::interface::{CharacterTokens, EOFToken, NullCharacterToken, ParseError};
-pub use self::interface::{CommentToken, DoctypeToken, TagToken, Token};
+pub use self::interface::{Attribute, Doctype, Tag, TagKind, Token};
+use self::interface::{CharacterTokens, EOFToken, NullCharacterToken, ParseError};
+use self::interface::{CommentToken, DoctypeToken, EndTag, StartTag, TagToken};
pub use self::interface::{TokenSink, TokenSinkResult};
use self::states::{DoctypeIdKind, Public, System};