Skip to content

Commit 5d343be

Browse files
committedMar 11, 2025
fix: make hosts non exhaustive
1 parent 1b9beb4 commit 5d343be

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
 

‎bin/prover-client/src/operators/operator.rs

+2
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ impl ProofOperator {
9696

9797
#[cfg(feature = "risc0")]
9898
ZkVmHostInstance::Risc0(host) => operator.prove(proof_key, db, host).await,
99+
100+
_ => unreachable!("Unexpected host variant"),
99101
}
100102
}
101103

‎crates/zkvm/hosts/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ pub fn get_verification_key(key: &ProofKey) -> VerifyingKey {
5151
/// SP1, and Risc0, which each implement the [`ZkVmHost`](zkaleido::ZkVmHost) trait. The
5252
/// [`ZkVmHost`](zkaleido::ZkVmHost) trait is not object-safe, so this enum is used to encapsulate
5353
/// the different implementations.
54+
#[non_exhaustive]
5455
pub enum ZkVmHostInstance {
5556
/// Represents the native ZKVM host implementation.
5657
///

0 commit comments

Comments
 (0)