mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-08 11:35:02 -05:00
fix: nightly clippy
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user