Skip to content

Commit 568837f

Browse files
committed
fix(reader)!: Make find private
Not seeing why the use case for this to be public. We need to better understand that to see how it should be public.
1 parent 8786479 commit 568837f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/reader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ impl fmt::Display for ReadUntil {
268268
/// Tuple with match positions:
269269
/// 1. position before match (0 in case of EOF and Nbytes)
270270
/// 2. position after match
271-
pub fn find(needle: &ReadUntil, buffer: &str, eof: bool) -> Option<(usize, usize)> {
271+
fn find(needle: &ReadUntil, buffer: &str, eof: bool) -> Option<(usize, usize)> {
272272
match needle {
273273
ReadUntil::String(s) => buffer.find(s).map(|pos| (pos, pos + s.len())),
274274
ReadUntil::Regex(pattern) => pattern.find(buffer).map(|mat| (mat.start(), mat.end())),

0 commit comments

Comments
 (0)