Skip to content

Commit cd33150

Browse files
committed
fix: cargo fmt and clippy
1 parent 1eca0ca commit cd33150

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

crates/batcher/src/sp1/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::sync::OnceLock;
44

55
static SP1_PROVER_CLIENT: OnceLock<EnvProver> = OnceLock::new();
66

7-
pub fn verify_sp1_proof(proof: &[u8], public_inputs: &[u8], elf: &[u8], ) -> bool {
7+
pub fn verify_sp1_proof(proof: &[u8], public_inputs: &[u8], elf: &[u8]) -> bool {
88
if proof.is_empty() || elf.is_empty() {
99
error!("SP1 Input buffers zero size");
1010
return false;

crates/batcher/src/zk_utils/mod.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ fn verify_internal(verification_data: &VerificationData) -> bool {
2121
return false;
2222
};
2323
let pub_inputs = &verification_data.pub_input.clone().unwrap_or_default();
24-
verify_sp1_proof(verification_data.proof.as_slice(), pub_inputs.as_slice(), elf.as_slice())
24+
verify_sp1_proof(
25+
verification_data.proof.as_slice(),
26+
pub_inputs.as_slice(),
27+
elf.as_slice(),
28+
)
2529
}
2630
ProvingSystemId::Risc0 => {
2731
let Some(image_id_slice) = &verification_data.vm_program_code else {

crates/cli/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ fn verification_data_from_args(args: &SubmitArgs) -> Result<VerificationData, Su
877877
// Read proof file
878878
let proof = read_file(args.proof_file_name.clone())?;
879879

880-
let mut pub_input: Option<Vec<u8>> = None;
880+
let pub_input: Option<Vec<u8>>;
881881
let mut verification_key: Option<Vec<u8>> = None;
882882
let mut vm_program_code: Option<Vec<u8>> = None;
883883

0 commit comments

Comments
 (0)