diff options
author | Martin Fischer <martin@push-f.com> | 2021-11-28 08:50:05 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2021-11-29 15:10:59 +0100 |
commit | d5ef05694f5ed4bbba164d0c9ee15106b134a358 (patch) | |
tree | e076063126519cdcce24dc591c31d690e77d849f /src | |
parent | 6220082e9b03151f14f274a7458e79c8d6e1ad3e (diff) |
stop exporting buffer_queue::SetResult
Diffstat (limited to 'src')
-rw-r--r-- | src/tokenizer/mod.rs | 3 | ||||
-rw-r--r-- | src/util/buffer_queue.rs | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/tokenizer/mod.rs b/src/tokenizer/mod.rs index b5d878b..23385d7 100644 --- a/src/tokenizer/mod.rs +++ b/src/tokenizer/mod.rs @@ -28,7 +28,8 @@ use std::collections::BTreeMap; use std::default::Default; use std::mem::replace; -pub use crate::util::buffer_queue::{BufferQueue, FromSet, NotFromSet, SetResult}; +pub use crate::util::buffer_queue::BufferQueue; +use crate::util::buffer_queue::{FromSet, NotFromSet, SetResult}; pub use states::RawKind; mod char_ref; diff --git a/src/util/buffer_queue.rs b/src/util/buffer_queue.rs index b741b36..8704ba5 100644 --- a/src/util/buffer_queue.rs +++ b/src/util/buffer_queue.rs @@ -128,7 +128,7 @@ impl BufferQueue { /// Pops and returns either a single character from the given set, or /// a buffer of characters none of which are in the set. - pub fn pop_except_from(&mut self, set: SmallCharSet) -> Option<SetResult> { + pub(crate) fn pop_except_from(&mut self, set: SmallCharSet) -> Option<SetResult> { let (result, now_empty) = match self.buffers.front_mut() { None => (None, false), Some((i, buf)) => { |