arnaucube
arnaucube/NovaPublic Self-hosted repository
address clippy
Srinath Setty srinath@microsoft.com
Thu, 02 Sep 2021 12:39:01 -0700
commit

7020d7a7149164fbd3e8678a86703406f66a6b3c

parent

45baf52f8d0a5abb81cd98e22d66af27167050e1

2 files changed, 6 insertions(+), 5 deletions(-)

jump to
M src/lib.rs → src/lib.rs

@@ -1,5 +1,6 @@

//! This library implements core components of Nova. #![allow(non_snake_case)] +#![allow(clippy::type_complexity)] #![feature(test)] #![deny(missing_docs)]
M src/r1cs.rs → src/r1cs.rs

@@ -122,9 +122,9 @@ Mz

}) }; - 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 Cz = sparse_matrix_vec_product(&self.C, 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 Cz = sparse_matrix_vec_product(&self.C, self.num_cons, z); Ok((Az, Bz, Cz)) }

@@ -286,8 +286,8 @@ if S.num_inputs != X.len() {

Err(NovaError::InvalidInputLength) } else { Ok(R1CSInstance { - comm_W: comm_W.clone(), - comm_E: comm_E.clone(), + comm_W: *comm_W, + comm_E: *comm_E, X: X.to_owned(), u: *u, })