Fix various clippy lints

This commit is contained in:
Paul Hauner
2019-05-28 10:56:05 +10:00
parent 6e5e1721f7
commit 21ecaddac1
6 changed files with 13 additions and 19 deletions

View File

@@ -100,7 +100,7 @@ where
}
fn from_ssz_bytes(bytes: &[u8]) -> Result<Self, ssz::DecodeError> {
if bytes.len() == 0 {
if bytes.is_empty() {
Ok(FixedLenVec::from(vec![]))
} else if T::is_ssz_fixed_len() {
bytes