Various small fixes

This commit is contained in:
Lukas Wirth 2023-09-22 08:08:00 +02:00
parent e63e323823
commit 556f0c6704
6 changed files with 22 additions and 20 deletions

View file

@ -23,7 +23,7 @@ pub fn streaming_output(
let idx = if eof {
data.len()
} else {
match data.iter().rposition(|b| *b == b'\n') {
match data.iter().rposition(|&b| b == b'\n') {
Some(i) => i + 1,
None => return,
}