fix: nightly clippy

This commit is contained in:
rudy
2023-02-27 11:38:55 +01:00
committed by Quentin Bourgerie
parent 77255e7eda
commit 7d69ce0f40
2 changed files with 1 additions and 2 deletions

View File

@@ -6,12 +6,12 @@ pub struct KsComplexity;
impl KsComplexity {
#[allow(clippy::cast_possible_wrap)]
#[allow(clippy::unused_self)]
pub fn complexity(
&self,
params: KeyswitchParameters,
_ciphertext_modulus_log: u32,
) -> Complexity {
_ = self;
// https://github.com/zama-ai/concrete-optimizer/blob/prototype/python/optimizer/noise_formulas/keyswitch.py#L91
let input_lwe_dimension = params.input_lwe_dimension.0 as i64;
let output_lwe_dimension = params.output_lwe_dimension.0 as i64;

View File

@@ -113,7 +113,6 @@ where
let content = update(content);
let len_after = content.len();
*lock = Arc::new(content);
drop(lock);
if len_before != len_after {
self.content_changed.store(true, Ordering::Relaxed);
}