mirror of
https://github.com/zama-ai/concrete.git
synced 2026-04-17 03:00:54 -04:00
fix(clippy): fix nightly clippy warnings
This commit is contained in:
@@ -3,7 +3,7 @@ use derive_more::{Add, AddAssign};
|
||||
|
||||
pub type Weights = ClearTensor;
|
||||
|
||||
#[derive(Clone, PartialEq, Debug)]
|
||||
#[derive(Clone, PartialEq, Eq, Debug)]
|
||||
pub struct FunctionTable {
|
||||
pub values: Vec<u64>,
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ pub(crate) struct ParameterToOperation {
|
||||
}
|
||||
|
||||
#[allow(clippy::module_name_repetitions)]
|
||||
#[derive(Clone, Copy, PartialEq, Debug)]
|
||||
#[derive(Clone, Copy, PartialEq, Eq, Debug)]
|
||||
pub struct ParameterCount {
|
||||
pub glwe: usize,
|
||||
pub br_decomposition: usize,
|
||||
|
||||
@@ -16,7 +16,7 @@ mod individual {
|
||||
pub log2_base: u64,
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, PartialEq, Debug)]
|
||||
#[derive(Clone, Copy, PartialEq, Eq, Debug)]
|
||||
pub struct GlweParameters {
|
||||
pub log2_polynomial_size: u64,
|
||||
pub glwe_dimension: u64,
|
||||
|
||||
@@ -2,14 +2,14 @@ use std::ops::Mul;
|
||||
|
||||
pub fn square<V>(v: V) -> V
|
||||
where
|
||||
V: Mul<V> + Mul<Output = V> + Copy,
|
||||
V: Mul<Output = V> + Copy,
|
||||
{
|
||||
v * v
|
||||
}
|
||||
|
||||
pub fn square_ref<V>(v: &V) -> V
|
||||
where
|
||||
V: Mul<V> + Mul<Output = V> + Copy,
|
||||
V: Mul<Output = V> + Copy,
|
||||
{
|
||||
square(*v)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user