Skip to content

Commit

Permalink
elliptic-curve: work around nightly-2020-10-06 breakage (#328)
Browse files Browse the repository at this point in the history
The `elliptic-curve` crate no longer builds on `nightly`.

Possible cause:

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 00f6fd1 commit d77bef5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion elliptic-curve/src/ecdh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ where
///
/// The `compress` flag enables point compression.
pub fn public_key(&self) -> PublicKey<C> {
(C::ProjectivePoint::generator() * &self.scalar)
#[allow(clippy::op_ref)]
(C::ProjectivePoint::generator() * &*self.scalar)
.to_affine()
.into()
}
Expand Down

0 comments on commit d77bef5

Please sign in to comment.