diff options
author | Martin Fischer <martin@push-f.com> | 2021-04-08 09:51:44 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2021-04-08 15:40:48 +0200 |
commit | 69c070d9436028a3eed97596243bb52aee198210 (patch) | |
tree | 9708a10a3225d46571fc3d15bf2f9130d520d6b1 /src/tokenizer | |
parent | 071a1bf860900482079c0f602430ebdc425e5fee (diff) |
merge buffer_queue and smallcharset from markup5ever
Diffstat (limited to 'src/tokenizer')
-rw-r--r-- | src/tokenizer/char_ref/mod.rs | 2 | ||||
-rw-r--r-- | src/tokenizer/mod.rs | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/tokenizer/char_ref/mod.rs b/src/tokenizer/char_ref/mod.rs index e0369c7..484a9e1 100644 --- a/src/tokenizer/char_ref/mod.rs +++ b/src/tokenizer/char_ref/mod.rs @@ -8,8 +8,8 @@ // except according to those terms. use super::{TokenSink, Tokenizer}; -use markup5ever::buffer_queue::BufferQueue; use tendril::StrTendril; +use crate::util::buffer_queue::BufferQueue; use crate::util::str::is_ascii_alnum; use log::debug; diff --git a/src/tokenizer/mod.rs b/src/tokenizer/mod.rs index 33c0a88..6c5823f 100644 --- a/src/tokenizer/mod.rs +++ b/src/tokenizer/mod.rs @@ -21,19 +21,19 @@ use self::states::{Rawtext, Rcdata, ScriptData, ScriptDataEscaped}; use self::char_ref::{CharRef, CharRefTokenizer}; -use crate::util::str::lower_ascii_letter; +use crate::util::{smallcharset::SmallCharSet, str::lower_ascii_letter}; use log::debug; use mac::{_tt_as_expr_hack, format_if, matches}; -use markup5ever::{namespace_url, ns, small_char_set}; +use markup5ever::{namespace_url, ns}; use std::borrow::Cow::{self, Borrowed}; use std::collections::BTreeMap; use std::default::Default; use std::mem::replace; -pub use markup5ever::buffer_queue::{BufferQueue, FromSet, NotFromSet, SetResult}; +pub use crate::util::buffer_queue::{BufferQueue, FromSet, NotFromSet, SetResult}; use tendril::StrTendril; -use markup5ever::{Attribute, LocalName, QualName, SmallCharSet}; +use markup5ever::{Attribute, LocalName, QualName}; mod char_ref; mod interface; @@ -1535,7 +1535,7 @@ mod test { use super::interface::{EndTag, StartTag, Tag, TagKind}; use super::interface::{TagToken, Token}; - use markup5ever::buffer_queue::BufferQueue; + use crate::util::buffer_queue::BufferQueue; use std::mem::replace; use markup5ever::LocalName; |