Merge pull request #239 from dpc/patch-1

Remove unnecessary trait bound
This commit is contained in:
Henry de Valence 2019-03-20 23:43:05 -07:00 committed by GitHub
commit 1a3da32e97
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());