mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-04 20:24:10 +00:00
Merge pull request #239 from dpc/patch-1
Remove unnecessary trait bound
This commit is contained in:
commit
1a3da32e97
1 changed files with 1 additions and 1 deletions
|
|
@ -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());
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue