Remove Decode trait bound. (#3342)

This commit is contained in:
David Craven
2019-08-08 16:31:50 +02:00
committed by GitHub
parent bafc7202ca
commit a7c87f21da
+1 -1
View File
@@ -398,7 +398,7 @@ pub trait Hash: 'static + MaybeSerializeDebug + Clone + Eq + PartialEq { // Stup
fn hash(s: &[u8]) -> Self::Output;
/// Produce the hash of some codec-encodable value.
fn hash_of<S: Codec>(s: &S) -> Self::Output {
fn hash_of<S: Encode>(s: &S) -> Self::Output {
Encode::using_encoded(s, Self::hash)
}