Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
clabby committed Feb 13, 2024
1 parent d06f413 commit 4ea83a8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crates/mipsevm/src/witness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,7 @@ impl StepWitness {
/// - `Some(input)` if the [StepWitness] has a preimage request.
/// - `None` if the [StepWitness] does not have a preimage request.
pub fn encode_preimage_oracle_input(&self) -> Option<Bytes> {
let Some(preimage_key) = self.preimage_key else {
crate::error!(target: "mipsevm::step_witness", "Cannot encode preimage oracle input without preimage key");
return None;
};
let preimage_key = self.preimage_key?;

match KeyType::from(preimage_key[0]) {
KeyType::_Illegal => {
Expand Down

0 comments on commit 4ea83a8

Please sign in to comment.