Skip to content

Commit 570da8a

Browse files
committed
elliptic-curve: work around nightly-2020-10-06 breakage
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.
1 parent 00f6fd1 commit 570da8a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

elliptic-curve/src/ecdh.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ where
7373
///
7474
/// The `compress` flag enables point compression.
7575
pub fn public_key(&self) -> PublicKey<C> {
76-
(C::ProjectivePoint::generator() * &self.scalar)
76+
#[allow(clippy::op_ref)]
77+
(C::ProjectivePoint::generator() * &*self.scalar)
7778
.to_affine()
7879
.into()
7980
}

0 commit comments

Comments
 (0)