Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix clippy errors #20

Merged
merged 1 commit into from
Jun 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions light-poseidon/src/parameters/bn254_x5.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ pub fn get_poseidon_parameters<F: PrimeField + std::convert::From<ark_ff::BigInt
t: u8,
) -> Result<PoseidonParameters<F>, PoseidonError> {
if t == 0_u8 {
return Err(PoseidonError::InvalidWidthCircom {
Err(PoseidonError::InvalidWidthCircom {
width: t as usize,
max_limit: 13usize,
});
})
} else if 2 == t {
let ark = vec![
F::from(ark_ff::BigInteger256::new([
Expand Down
4 changes: 2 additions & 2 deletions xtask/src/generate_parameters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,10 @@ pub fn generate_parameters(_opts: Options) -> Result<(), anyhow::Error> {
#[allow(unused_variables)]
pub fn get_poseidon_parameters<F: PrimeField + std::convert::From<ark_ff::BigInteger256>>(t: u8) -> Result<PoseidonParameters<F>, PoseidonError> {
if t == 0_u8 {
return Err(PoseidonError::InvalidWidthCircom {
Err(PoseidonError::InvalidWidthCircom {
width: t as usize,
max_limit: 13usize,
});\n
})\n
}\n";
for t in 2..14 {
let path = format!("./target/params/poseidon_params_bn254_x5_{}", t);
Expand Down