Skip to content

Commit

Permalink
fix(provers): fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
petarvujovic98 committed Jul 17, 2024
1 parent a2ae2aa commit bdb6c9e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions provers/risc0/driver/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use alloy_primitives::B256;
use hex::ToHex;
use raiko_lib::{
input::{GuestInput, GuestOutput},
prover::{IdStore, IdWrite, Proof, Prover, ProverConfig, ProverError, ProverResult},
prover::{IdStore, IdWrite, Proof, ProofKey, Prover, ProverConfig, ProverError, ProverResult},
};
use risc0_zkvm::{serde::to_vec, sha::Digest};
use serde::{Deserialize, Serialize};
Expand Down Expand Up @@ -54,7 +54,7 @@ impl Prover for Risc0Prover {
input: GuestInput,
output: &GuestOutput,
config: &ProverConfig,
write: Option<&mut dyn IdWrite>,
_write: Option<&mut dyn IdWrite>,
) -> ProverResult<Proof> {
let config = Risc0Param::deserialize(config.get("risc0").unwrap()).unwrap();

Expand Down Expand Up @@ -95,7 +95,7 @@ impl Prover for Risc0Prover {
Ok(Risc0Response { proof: journal }.into())
}

async fn cancel(key: &str, store: Box<&mut dyn IdStore>) -> ProverResult<()> {
async fn cancel(_key: ProofKey, _store: Box<&mut dyn IdStore>) -> ProverResult<()> {
Ok(())
}
}
Expand Down
6 changes: 3 additions & 3 deletions provers/sp1/driver/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![cfg(feature = "enable")]
use raiko_lib::{
input::{GuestInput, GuestOutput},
prover::{IdStore, IdWrite, Proof, Prover, ProverConfig, ProverError, ProverResult},
prover::{IdStore, IdWrite, Proof, ProofKey, Prover, ProverConfig, ProverError, ProverResult},
};
use serde::{Deserialize, Serialize};
use sp1_sdk::{ProverClient, SP1Stdin};
Expand Down Expand Up @@ -32,7 +32,7 @@ impl Prover for Sp1Prover {
input: GuestInput,
_output: &GuestOutput,
_config: &ProverConfig,
write: Option<&mut dyn IdWrite>,
_write: Option<&mut dyn IdWrite>,
) -> ProverResult<Proof> {
// Write the input.
let mut stdin = SP1Stdin::new();
Expand Down Expand Up @@ -70,7 +70,7 @@ impl Prover for Sp1Prover {
.into())
}

async fn cancel(_key: &str, _store: Box<&mut dyn IdStore>) -> ProverResult<()> {
async fn cancel(_key: ProofKey, _store: Box<&mut dyn IdStore>) -> ProverResult<()> {
Ok(())
}
}
Expand Down

0 comments on commit bdb6c9e

Please sign in to comment.