mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-04 20:24:10 +00:00
Make clippy happy
This commit is contained in:
parent
219995dbc9
commit
1b6fee354d
3 changed files with 3 additions and 3 deletions
|
|
@ -327,7 +327,7 @@ pub const EIGHT_TORSION_INNER_DOC_HIDDEN: [EdwardsPoint; 8] = [
|
|||
|
||||
/// Table containing precomputed multiples of the Ed25519 basepoint \\(B = (x, 4/5)\\).
|
||||
#[cfg(feature = "precomputed-tables")]
|
||||
pub static ED25519_BASEPOINT_TABLE: &'static EdwardsBasepointTable =
|
||||
pub static ED25519_BASEPOINT_TABLE: &EdwardsBasepointTable =
|
||||
&ED25519_BASEPOINT_TABLE_INNER_DOC_HIDDEN;
|
||||
|
||||
/// Inner constant, used to avoid filling the docs with precomputed points.
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ use crate::ristretto::RistrettoBasepointTable;
|
|||
|
||||
/// The Ristretto basepoint, as a `RistrettoBasepointTable` for scalar multiplication.
|
||||
#[cfg(feature = "precomputed-tables")]
|
||||
pub static RISTRETTO_BASEPOINT_TABLE: &'static RistrettoBasepointTable = unsafe {
|
||||
pub static RISTRETTO_BASEPOINT_TABLE: &RistrettoBasepointTable = unsafe {
|
||||
// SAFETY: `RistrettoBasepointTable` is a `#[repr(transparent)]` newtype of
|
||||
// `EdwardsBasepointTable`
|
||||
&*(ED25519_BASEPOINT_TABLE as *const EdwardsBasepointTable as *const RistrettoBasepointTable)
|
||||
|
|
|
|||
|
|
@ -184,7 +184,7 @@ cfg_if! {
|
|||
}
|
||||
|
||||
/// The `Scalar` struct holds an element of \\(\mathbb Z / \ell\mathbb Z \\).
|
||||
#[allow(clippy::derive_hash_xor_eq)]
|
||||
#[allow(clippy::derived_hash_with_manual_eq)]
|
||||
#[derive(Copy, Clone, Hash)]
|
||||
pub struct Scalar {
|
||||
/// `bytes` is a little-endian byte encoding of an integer representing a scalar modulo the
|
||||
|
|
|
|||
Loading…
Reference in a new issue