From a7c87f21dad914fc684c66eb1d515fb2e74bfa0b Mon Sep 17 00:00:00 2001 From: David Craven Date: Thu, 8 Aug 2019 16:31:50 +0200 Subject: [PATCH] Remove Decode trait bound. (#3342) --- substrate/core/sr-primitives/src/traits.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/substrate/core/sr-primitives/src/traits.rs b/substrate/core/sr-primitives/src/traits.rs index 7272bd3488..9c6954db28 100644 --- a/substrate/core/sr-primitives/src/traits.rs +++ b/substrate/core/sr-primitives/src/traits.rs @@ -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: &S) -> Self::Output { + fn hash_of(s: &S) -> Self::Output { Encode::using_encoded(s, Self::hash) }