Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Remove Decodable bound
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdplm committed Jun 4, 2018
1 parent 3f1cfc5 commit 4e2e81b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions util/hashdb/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license = "GPL-3.0"

[dependencies]
elastic-array = "0.10"
ethereum-types = "0.3"
heapsize = "0.4"
tiny-keccak = "1.4.2"
rlp = "*"
# TODO: Used by the `KeccakHasher` impl which I think should move to own crate?
ethereum-types = "0.3"
tiny-keccak = "1.4.2"
3 changes: 1 addition & 2 deletions util/hashdb/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ extern crate elastic_array;
extern crate ethereum_types;
extern crate heapsize;
extern crate tiny_keccak;
extern crate rlp;

use elastic_array::ElasticArray128;
use ethereum_types::H256;
Expand All @@ -29,7 +28,7 @@ use std::{fmt::Debug, hash::Hash};
use tiny_keccak::Keccak;

pub trait Hasher: Sync + Send {
type Out: AsRef<[u8]> + Debug + PartialEq + Eq + Clone + Copy + Hash + Send + Sync /* REVIEW: how do I get around this? --> */ + HeapSizeOf /* …and this? -> */ + rlp::Decodable;
type Out: AsRef<[u8]> + Debug + PartialEq + Eq + Clone + Copy + Hash + Send + Sync /* REVIEW: how do I get around this? --> */ + HeapSizeOf;
const HASHED_NULL_RLP: Self::Out;
fn hash(x: &[u8]) -> Self::Out;
}
Expand Down

0 comments on commit 4e2e81b

Please sign in to comment.