add clippy
This commit is contained in:
parent
9b73e351aa
commit
20bce10204
|
@ -23,6 +23,7 @@ pub struct ElGamal;
|
||||||
impl ElGamal {
|
impl ElGamal {
|
||||||
/// Generates the public and secret keys for ElGamal encryption.
|
/// Generates the public and secret keys for ElGamal encryption.
|
||||||
#[cfg(not(target_arch = "bpf"))]
|
#[cfg(not(target_arch = "bpf"))]
|
||||||
|
#[allow(clippy::new_ret_no_self)]
|
||||||
pub fn new() -> (ElGamalPubkey, ElGamalSecretKey) {
|
pub fn new() -> (ElGamalPubkey, ElGamalSecretKey) {
|
||||||
ElGamal::with(&mut OsRng) // using OsRng for now
|
ElGamal::with(&mut OsRng) // using OsRng for now
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue