Skip to content

Commit

Permalink
fix: mutable static ref warning in halt syscall
Browse files Browse the repository at this point in the history
  • Loading branch information
mattstam committed Aug 1, 2024
1 parent 26afcc1 commit 716751c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zkvm/entrypoint/src/syscalls/halt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub extern "C" fn syscall_halt(exit_code: u8) -> ! {
unsafe {
// When we halt, we retrieve the public values finalized digest. This is the hash of all
// the bytes written to the public values fd.
let pv_digest_bytes = core::mem::take(&mut zkvm::PUBLIC_VALUES_HASHER)
let pv_digest_bytes = core::mem::take(core::ptr::addr_of_mut!(zkvm::PUBLIC_VALUES_HASHER))
.unwrap()
.finalize();

Expand Down

0 comments on commit 716751c

Please sign in to comment.