diff --git a/beacon_chain/utils/ssz/src/impl_encode.rs b/beacon_chain/utils/ssz/src/impl_encode.rs index a2e955d37..b66dd30c8 100644 --- a/beacon_chain/utils/ssz/src/impl_encode.rs +++ b/beacon_chain/utils/ssz/src/impl_encode.rs @@ -1,5 +1,3 @@ -#![cfg_attr(not(feature = "clippy"), allow(cast_lossless))] - extern crate bytes; use super::{ @@ -17,8 +15,8 @@ use self::bytes::{ BytesMut, BufMut }; macro_rules! impl_encodable_for_uint { ($type: ident, $bit_size: expr) => { impl Encodable for $type { - fn ssz_append(&self, s: &mut SszStream) - { + #[allow(cast_lossless)] + fn ssz_append(&self, s: &mut SszStream) { // Ensure bit size is valid assert!((0 < $bit_size) && ($bit_size % 8 == 0) &&