Fix various clippy lints
This commit is contained in:
parent
05ed778ccc
commit
4824b43808
@ -194,7 +194,7 @@ fn per_block_processing_signature_optional(
|
|||||||
),
|
),
|
||||||
Error::BadProposerSlashing
|
Error::BadProposerSlashing
|
||||||
);
|
);
|
||||||
state.penalize_validator(proposer_slashing.proposer_index as usize, spec);
|
state.penalize_validator(proposer_slashing.proposer_index as usize, spec)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -81,6 +81,11 @@ impl BooleanBitfield {
|
|||||||
self.0.len()
|
self.0.len()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Returns true if `self.len() == 0`
|
||||||
|
pub fn is_empty(&self) -> bool {
|
||||||
|
self.len() == 0
|
||||||
|
}
|
||||||
|
|
||||||
/// Returns the number of bytes required to represent this bitfield.
|
/// Returns the number of bytes required to represent this bitfield.
|
||||||
pub fn num_bytes(&self) -> usize {
|
pub fn num_bytes(&self) -> usize {
|
||||||
self.to_bytes().len()
|
self.to_bytes().len()
|
||||||
|
Loading…
Reference in New Issue
Block a user