Skip to content

Commit

Permalink
Make unchanged mut vars immutable
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielbosio committed Sep 19, 2024
1 parent 664a813 commit a67bb78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions operator/mina/lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ mod test {

#[test]
fn empty_mina_state_proof_does_not_verify() {
let mut proof_buffer = [0u8; super::MAX_PROOF_SIZE];
let proof_buffer = [0u8; super::MAX_PROOF_SIZE];
let proof_size = PROOF_BYTES.len();

let mut pub_input_buffer = [0u8; super::MAX_PUB_INPUT_SIZE];
Expand All @@ -257,7 +257,7 @@ mod test {
assert!(proof_size <= proof_buffer.len());
proof_buffer[..proof_size].clone_from_slice(PROOF_BYTES);

let mut pub_input_buffer = [0u8; super::MAX_PUB_INPUT_SIZE];
let pub_input_buffer = [0u8; super::MAX_PUB_INPUT_SIZE];
let pub_input_size = PUB_INPUT_BYTES.len();

let result =
Expand Down

0 comments on commit a67bb78

Please sign in to comment.