diff --git a/parser/src/input.rs b/parser/src/input.rs index 1e9711b..a9402bb 100644 --- a/parser/src/input.rs +++ b/parser/src/input.rs @@ -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. diff --git a/parser/src/buffered_input.rs b/parser/src/input/buffered.rs similarity index 98% rename from parser/src/buffered_input.rs rename to parser/src/input/buffered.rs index fcae8d8..c51efac 100644 --- a/parser/src/buffered_input.rs +++ b/parser/src/input/buffered.rs @@ -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> { /// The iterator source, input: T, diff --git a/parser/src/lib.rs b/parser/src/lib.rs index 8cd4731..ac27132 100644 --- a/parser/src/lib.rs +++ b/parser/src/lib.rs @@ -32,7 +32,6 @@ #![warn(missing_docs, clippy::pedantic)] -mod buffered_input; mod char_traits; #[macro_use] mod debug; @@ -40,6 +39,6 @@ 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};