We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e2fbe5 commit a278e96Copy full SHA for a278e96
src/packet.rs
@@ -85,7 +85,7 @@ impl<R: Read> PacketReader<R> {
85
self.start = self.bytes.len() - self.remaining;
86
87
loop {
88
- {
+ if self.remaining != 0 {
89
let bytes = {
90
// NOTE: this is all sorts of unfortunate. what we really want to do is to give
91
// &self.bytes[self.start..] to `packet()`, and the lifetimes should all work
0 commit comments