Skip to content

Commit 70818ec

Browse files
committed
2.8.2: duplicate code
1 parent 8ec67d8 commit 70818ec

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

utils/src/types/byte_string.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ impl ByteString {
4444
self.current_index >= 0
4545
}
4646

47-
#[cfg(test)]
4847
#[inline]
4948
fn is_complete(&self) -> bool {
5049
(self.current_index as usize) == self.size()
@@ -74,7 +73,7 @@ impl RawDecoder for ByteString {
7473
self.current_index += 1;
7574
}
7675

77-
if (self.current_index as usize) == self.size() {
76+
if self.is_complete() {
7877
Ok(DecodeStage::COMPLETE)
7978
} else {
8079
Ok(DecodeStage { ..*stage })

0 commit comments

Comments
 (0)