needless_range ignore and derive[default] tag on sszstream
This commit is contained in:
parent
e714ec0489
commit
869049d099
@ -1,3 +1,5 @@
|
|||||||
|
#![cfg_attr(not(feature = "clippy"), allow(needless_range_loop))]
|
||||||
|
|
||||||
use super::{
|
use super::{
|
||||||
LENGTH_BYTES,
|
LENGTH_BYTES,
|
||||||
MAX_LIST_SIZE,
|
MAX_LIST_SIZE,
|
||||||
@ -17,6 +19,7 @@ pub trait Encodable {
|
|||||||
/// Use the `append()` fn to add a value to a list, then use
|
/// Use the `append()` fn to add a value to a list, then use
|
||||||
/// the `drain()` method to consume the struct and return the
|
/// the `drain()` method to consume the struct and return the
|
||||||
/// ssz encoded bytes.
|
/// ssz encoded bytes.
|
||||||
|
#[derive(Default)]
|
||||||
pub struct SszStream {
|
pub struct SszStream {
|
||||||
buffer: Vec<u8>
|
buffer: Vec<u8>
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user