chore: remove trait bounds on struct

This commit is contained in:
zhangsoledad
2022-08-01 19:48:32 +08:00
parent c8ae8dad9d
commit d6cfbe6454
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ use core::fmt::Debug;
use core::marker::PhantomData;
#[allow(clippy::upper_case_acronyms)]
pub struct MMR<T, M, S: MMRStore<T>> {
pub struct MMR<T, M, S> {
mmr_size: u64,
batch: MMRBatch<T, S>,
merge: PhantomData<M>,
+1 -1
View File
@@ -1,7 +1,7 @@
use crate::{vec::Vec, Result};
#[derive(Default)]
pub struct MMRBatch<Elem, Store: MMRStore<Elem>> {
pub struct MMRBatch<Elem, Store> {
memory_batch: Vec<(u64, Vec<Elem>)>,
store: Store,
}