Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
weilzkm committed Sep 26, 2024
1 parent 562ebeb commit 8434023
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions prover/examples/zkmips.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ fn prove_sha2_rust() {

let mut seg_num = 1usize;
if seg_size != 0 {
seg_num = (total_steps + seg_size - 1) / seg_size;
seg_num = (total_steps + seg_size - 1).div_ceil(seg_size);
}
prove_multi_seg_common(&seg_path, "", "", "", seg_size, seg_num, 0).unwrap()
}
Expand Down Expand Up @@ -319,7 +319,7 @@ fn prove_sha2_go() {

let mut seg_num = 1usize;
if seg_size != 0 {
seg_num = (total_steps + seg_size - 1) / seg_size;
seg_num = (total_steps + seg_size - 1).div_ceil(seg_size);
}

prove_multi_seg_common(&seg_path, "", "", "", seg_size, seg_num, 0).unwrap()
Expand All @@ -344,7 +344,7 @@ fn prove_revm() {

let mut seg_num = 1usize;
if seg_size != 0 {
seg_num = (total_steps + seg_size - 1) / seg_size;
seg_num = (total_steps + seg_size - 1).div_ceil(seg_size);
}

if seg_num == 1 {
Expand Down Expand Up @@ -430,7 +430,7 @@ fn prove_add_example() {

let mut seg_num = 1usize;
if seg_size != 0 {
seg_num = (total_steps + seg_size - 1) / seg_size;
seg_num = (total_steps + seg_size - 1).div_ceil(seg_size);
}

if seg_num == 1 {
Expand Down
2 changes: 1 addition & 1 deletion runtime/entrypoint/src/syscalls/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub use sys::*;

/// These codes MUST match the codes in `core/src/runtime/syscall.rs`. There is a derived test
/// that checks that the enum is consistent with the syscalls.

///
/// Halts the program.
pub const HALT: u32 = 4246u32;

Expand Down

0 comments on commit 8434023

Please sign in to comment.