Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
xqft committed Nov 29, 2024
1 parent 67da075 commit 975378c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/l2/prover/src/prover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ impl<'a> Prover<'a> {

pub fn get_gas(&self) -> Result<u64, Box<dyn std::error::Error>> {
Ok(risc0_zkvm::serde::from_slice(
&self.stdout[..8], // first 8 bytes
&self.stdout.get(..8).unwrap_or_default(), // first 8 bytes
)?)
}

Expand Down

0 comments on commit 975378c

Please sign in to comment.