We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7adba38 commit 581d6beCopy full SHA for 581d6be
1 file changed
src/reader.rs
@@ -210,8 +210,8 @@ impl NBReader {
210
pub enum ReadUntil {
211
String(String),
212
Regex(Regex),
213
- EOF,
214
NBytes(usize),
+ EOF,
215
Any(Vec<ReadUntil>),
216
}
217
@@ -222,8 +222,8 @@ impl fmt::Display for ReadUntil {
222
ReadUntil::String(s) if s == "\r" => "\\r (carriage return)".to_owned(),
223
ReadUntil::String(s) => format!("\"{s}\""),
224
ReadUntil::Regex(r) => format!("Regex: \"{r}\""),
225
- ReadUntil::EOF => "EOF (End of File)".to_owned(),
226
ReadUntil::NBytes(n) => format!("reading {n} bytes"),
+ ReadUntil::EOF => "EOF (End of File)".to_owned(),
227
ReadUntil::Any(v) => {
228
let mut res = Vec::new();
229
for r in v {
0 commit comments