From bce81b634fe169b03e53d9905541f1f30be65b23 Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Thu, 8 Oct 2020 13:00:21 -0700 Subject: [PATCH] ecdsa: work around nightly-2020-10-06 breakage The `ecdsa` crate no longer builds on `nightly`, possibly due to: https://github.com/rust-lang/rust/issues/77638 Unfortunately this means rustdoc builds on https://docs.rs fail! This commit works around the issue. --- ecdsa/src/sign.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ecdsa/src/sign.rs b/ecdsa/src/sign.rs index cad20dc0..439dae60 100644 --- a/ecdsa/src/sign.rs +++ b/ecdsa/src/sign.rs @@ -86,9 +86,9 @@ where where AffinePoint: 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