summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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};