add clippy

This commit is contained in:
Michael Vines 2021-10-04 10:27:51 -07:00
parent 9b73e351aa
commit 20bce10204
1 changed files with 1 additions and 0 deletions

View File

@ -23,6 +23,7 @@ pub struct ElGamal;
impl ElGamal {
/// Generates the public and secret keys for ElGamal encryption.
#[cfg(not(target_arch = "bpf"))]
#[allow(clippy::new_ret_no_self)]
pub fn new() -> (ElGamalPubkey, ElGamalSecretKey) {
ElGamal::with(&mut OsRng) // using OsRng for now
}