readded cast_lossless supress to encode

This commit is contained in:
Grant Wuerker 2018-10-20 20:31:26 -05:00
parent 3c1640f41a
commit d670294c11

View File

@ -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) &&