mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-20 22:38:34 +00:00
Fix various clippy lints
This commit is contained in:
@@ -102,9 +102,7 @@ impl<'a> SszDecoderBuilder<'a> {
|
||||
.and_then(|o| Some(o.offset))
|
||||
.unwrap_or_else(|| BYTES_PER_LENGTH_OFFSET);
|
||||
|
||||
if previous_offset > offset {
|
||||
return Err(DecodeError::OutOfBoundsByte { i: offset });
|
||||
} else if offset > self.bytes.len() {
|
||||
if (previous_offset > offset) || (offset > self.bytes.len()) {
|
||||
return Err(DecodeError::OutOfBoundsByte { i: offset });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user