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 8ec67d8 commit 70818ecCopy full SHA for 70818ec
utils/src/types/byte_string.rs
@@ -44,7 +44,6 @@ impl ByteString {
44
self.current_index >= 0
45
}
46
47
- #[cfg(test)]
48
#[inline]
49
fn is_complete(&self) -> bool {
50
(self.current_index as usize) == self.size()
@@ -74,7 +73,7 @@ impl RawDecoder for ByteString {
74
73
self.current_index += 1;
75
76
77
- if (self.current_index as usize) == self.size() {
+ if self.is_complete() {
78
Ok(DecodeStage::COMPLETE)
79
} else {
80
Ok(DecodeStage { ..*stage })
0 commit comments