readded cast_lossless supress to encode
This commit is contained in:
parent
3c1640f41a
commit
d670294c11
@ -1,5 +1,3 @@
|
|||||||
#![cfg_attr(not(feature = "clippy"), allow(cast_lossless))]
|
|
||||||
|
|
||||||
extern crate bytes;
|
extern crate bytes;
|
||||||
|
|
||||||
use super::{
|
use super::{
|
||||||
@ -17,8 +15,8 @@ use self::bytes::{ BytesMut, BufMut };
|
|||||||
macro_rules! impl_encodable_for_uint {
|
macro_rules! impl_encodable_for_uint {
|
||||||
($type: ident, $bit_size: expr) => {
|
($type: ident, $bit_size: expr) => {
|
||||||
impl Encodable for $type {
|
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
|
// Ensure bit size is valid
|
||||||
assert!((0 < $bit_size) &&
|
assert!((0 < $bit_size) &&
|
||||||
($bit_size % 8 == 0) &&
|
($bit_size % 8 == 0) &&
|
||||||
|
Loading…
Reference in New Issue
Block a user