Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Oct 2, 2021
1 parent 290d0b5 commit 8ca8ffe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/zerovec/src/varzerovec/owned.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ impl<T: AsVarULE> VarZeroVecOwned<T> {
/// Note: an index is valid if it doesn't point to data past the end of the slice and is
/// less than or equal to all future indices. The length of the index segment is not part of each index.
fn verify_integrity(&self) -> bool {
if self.len() == 0 && !self.entire_slice.is_empty() {
if self.is_empty() && !self.entire_slice.is_empty() {
return false;
}
let slice_len = self.entire_slice.len();
Expand Down

0 comments on commit 8ca8ffe

Please sign in to comment.