mirror of
https://github.com/mii443/lamport_sigs.rs.git
synced 2025-08-22 15:05:49 +00:00
Formatting
This commit is contained in:
committed by
Romain Ruetschi
parent
8960ec02c3
commit
4b71469f45
17
src/lib.rs
17
src/lib.rs
@ -1,8 +1,16 @@
|
||||
//! *lamport* implements one-time hash-based signatures using the Lamport signature scheme.
|
||||
|
||||
#![deny(missing_docs, missing_debug_implementations, missing_copy_implementations, trivial_casts,
|
||||
trivial_numeric_casts, unsafe_code, unstable_features, unused_import_braces,
|
||||
unused_qualifications)]
|
||||
#![deny(
|
||||
missing_docs,
|
||||
missing_debug_implementations,
|
||||
missing_copy_implementations,
|
||||
trivial_casts,
|
||||
trivial_numeric_casts,
|
||||
unsafe_code,
|
||||
unstable_features,
|
||||
unused_import_braces,
|
||||
unused_qualifications
|
||||
)]
|
||||
|
||||
extern crate rand;
|
||||
extern crate ring;
|
||||
@ -25,7 +33,8 @@ impl PartialEq for PublicKey {
|
||||
#[allow(trivial_casts)]
|
||||
fn eq(&self, other: &Self) -> bool {
|
||||
self.algorithm as *const Algorithm == other.algorithm as *const Algorithm
|
||||
&& self.zero_values == other.zero_values && self.one_values == other.one_values
|
||||
&& self.zero_values == other.zero_values
|
||||
&& self.one_values == other.one_values
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user