From 869049d099803354adf652d606e02d70f160849b Mon Sep 17 00:00:00 2001 From: Grant Wuerker Date: Sat, 20 Oct 2018 17:29:12 -0500 Subject: [PATCH] needless_range ignore and derive[default] tag on sszstream --- beacon_chain/utils/ssz/src/encode.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/beacon_chain/utils/ssz/src/encode.rs b/beacon_chain/utils/ssz/src/encode.rs index b501ebe40..0a5ac4b4d 100644 --- a/beacon_chain/utils/ssz/src/encode.rs +++ b/beacon_chain/utils/ssz/src/encode.rs @@ -1,3 +1,5 @@ +#![cfg_attr(not(feature = "clippy"), allow(needless_range_loop))] + use super::{ LENGTH_BYTES, MAX_LIST_SIZE, @@ -17,6 +19,7 @@ pub trait Encodable { /// Use the `append()` fn to add a value to a list, then use /// the `drain()` method to consume the struct and return the /// ssz encoded bytes. +#[derive(Default)] pub struct SszStream { buffer: Vec }