Remove unnecessary trait bound

This commit is contained in:
Dawid Ciężarkiewicz 2019-03-20 20:30:58 -07:00 committed by GitHub
parent ca6305232f
commit f612dd9dfa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -599,7 +599,7 @@ impl Scalar {
/// # } /// # }
/// ``` /// ```
pub fn from_hash<D>(hash: D) -> Scalar pub fn from_hash<D>(hash: D) -> Scalar
where D: Digest<OutputSize = U64> + Default where D: Digest<OutputSize = U64>
{ {
let mut output = [0u8; 64]; let mut output = [0u8; 64];
output.copy_from_slice(hash.result().as_slice()); output.copy_from_slice(hash.result().as_slice());