mirror of
https://github.com/pezkuwichain/merkle-mountain-range.git
synced 2026-04-22 04:27:57 +00:00
chore: remove trait bounds on struct
This commit is contained in:
+1
-1
@@ -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
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user