Skip to content

Commit

Permalink
Move buffered_input to an input module.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethiraric committed Jul 14, 2024
1 parent 65fcb6f commit 0e9cee1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions parser/src/input.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
pub mod buffered;

#[allow(clippy::module_name_repetitions)]
pub use buffered::BufferedInput;

use crate::char_traits::is_blank_or_breakz;

/// Interface for a source of characters.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const BUFFER_LEN: usize = 16;
/// characters at a time and sometimes pushing some back into the stream.
/// There is no "easy" way of doing this without itertools. In order to avoid pulling the entierty
/// of itertools for one method, we use this structure.
#[allow(clippy::module_name_repetitions)]
pub struct BufferedInput<T: Iterator<Item = char>> {
/// The iterator source,
input: T,
Expand Down
3 changes: 1 addition & 2 deletions parser/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,13 @@
#![warn(missing_docs, clippy::pedantic)]

mod buffered_input;
mod char_traits;
#[macro_use]
mod debug;
mod input;
mod parser;
mod scanner;

pub use crate::buffered_input::BufferedInput;
pub use crate::input::BufferedInput;
pub use crate::parser::{Event, EventReceiver, MarkedEventReceiver, Parser, Tag};
pub use crate::scanner::{Marker, ScanError, TScalarStyle};

0 comments on commit 0e9cee1

Please sign in to comment.