mirror of
https://github.com/arnaucube/Nova.git
synced 2026-01-11 16:41:28 +01:00
address clippy
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
//! This library implements core components of Nova.
|
//! This library implements core components of Nova.
|
||||||
#![allow(non_snake_case)]
|
#![allow(non_snake_case)]
|
||||||
|
#![allow(clippy::type_complexity)]
|
||||||
#![feature(test)]
|
#![feature(test)]
|
||||||
#![deny(missing_docs)]
|
#![deny(missing_docs)]
|
||||||
|
|
||||||
|
|||||||
10
src/r1cs.rs
10
src/r1cs.rs
@@ -122,9 +122,9 @@ impl<G: Group> R1CSShape<G> {
|
|||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
|
||||||
let Az = sparse_matrix_vec_product(&self.A, self.num_cons, &z);
|
let Az = sparse_matrix_vec_product(&self.A, self.num_cons, z);
|
||||||
let Bz = sparse_matrix_vec_product(&self.B, self.num_cons, &z);
|
let Bz = sparse_matrix_vec_product(&self.B, self.num_cons, z);
|
||||||
let Cz = sparse_matrix_vec_product(&self.C, self.num_cons, &z);
|
let Cz = sparse_matrix_vec_product(&self.C, self.num_cons, z);
|
||||||
|
|
||||||
Ok((Az, Bz, Cz))
|
Ok((Az, Bz, Cz))
|
||||||
}
|
}
|
||||||
@@ -286,8 +286,8 @@ impl<G: Group> R1CSInstance<G> {
|
|||||||
Err(NovaError::InvalidInputLength)
|
Err(NovaError::InvalidInputLength)
|
||||||
} else {
|
} else {
|
||||||
Ok(R1CSInstance {
|
Ok(R1CSInstance {
|
||||||
comm_W: comm_W.clone(),
|
comm_W: *comm_W,
|
||||||
comm_E: comm_E.clone(),
|
comm_E: *comm_E,
|
||||||
X: X.to_owned(),
|
X: X.to_owned(),
|
||||||
u: *u,
|
u: *u,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user