Skip to content

Remove mutable ref from params #113

Remove mutable ref from params

Remove mutable ref from params #113

GitHub Actions / Clippy (1.56.1) failed Jan 21, 2025 in 0s

Clippy (1.56.1)

1 error

Details

Results

Message level Amount
Internal compiler error 0
Error 1
Warning 0
Note 0
Help 0

Versions

  • rustc 1.77.0 (aedd173a2 2024-03-17)
  • cargo 1.77.0 (3fe68eabf 2024-02-29)
  • clippy 0.1.77 (aedd173 2024-03-17)

Annotations

Check failure on line 614 in src/plonk/prover.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy (1.56.1)

the function `keygen_vk` doesn't need a mutable reference

error: the function `keygen_vk` doesn't need a mutable reference
   --> src/plonk/prover.rs:614:24
    |
614 |     let vk = keygen_vk(&mut params, &MyCircuit).expect("keygen_vk should not fail");
    |                        ^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
    = note: `-D clippy::unnecessary-mut-passed` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::unnecessary_mut_passed)]`