Commit b455878
committed
Fix: Add missing negation
If we emit a ReadUntil::NBytes, but the `eof` flag is already set and
the buffer is indeed _not_ empty, we return Some() here. If the buffer
is empty, there's nothing to return, so we return None.
This fixes the following tests:
* reader::tests::test_any_with_multiple_possible_matches
* reader::tests::test_any_with_same_start_different_length
* reader::tests::test_eof
* reader::tests::test_expect_melon
* reader::tests::test_nbytes
* reader::tests::test_regex
* reader::tests::test_regex2
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>1 parent 9e8a768 commit b455878
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
0 commit comments