PMMRable cleanup (#1910)

* cleanup pmmrable and len()
introduce FixedLength trait with a const LEN
make Hash impl FixedLength for consistency

* rustfmt

* store tests cleanup

* rustfmt

* whats going on with those comments and rustfmt?
This commit is contained in:
Antioch Peverell
2018-11-01 20:14:46 +00:00
committed by GitHub
parent 9cebbf24b8
commit d23dec73d0
14 changed files with 81 additions and 112 deletions
+2 -8
View File
@@ -69,18 +69,12 @@ impl HashOnlyMMRHandle {
}
}
struct PMMRHandle<T>
where
T: PMMRable,
{
struct PMMRHandle<T: PMMRable> {
backend: PMMRBackend<T>,
last_pos: u64,
}
impl<T> PMMRHandle<T>
where
T: PMMRable + ::std::fmt::Debug,
{
impl<T: PMMRable> PMMRHandle<T> {
fn new(
root_dir: &str,
sub_dir: &str,