Skip to content

Commit

Permalink
ecdsa: work around nightly-2020-10-06 breakage (#180)
Browse files Browse the repository at this point in the history
The `ecdsa` crate no longer builds on `nightly`, possibly due to:

rust-lang/rust#77638

Unfortunately this means rustdoc builds on https://docs.rs fail!

This commit works around the issue.
  • Loading branch information
tarcieri committed Oct 8, 2020
1 parent 29f2d5a commit 96ffe73
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ecdsa/src/sign.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ where
where
AffinePoint<C>: Clone + Debug,
{
VerifyKey {
public_key: (C::ProjectivePoint::generator() * &self.secret_scalar).to_affine(),
}
#[allow(clippy::op_ref)]
let public_key = (C::ProjectivePoint::generator() * &*self.secret_scalar).to_affine();
VerifyKey { public_key }
}

/// Serialize this [`SigningKey`] as bytes
Expand Down

0 comments on commit 96ffe73

Please sign in to comment.