Skip to content

Commit

Permalink
remove
Browse files Browse the repository at this point in the history
  • Loading branch information
ctian1 committed Dec 18, 2024
1 parent 6bee152 commit ddc6b59
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions crates/prover/src/types.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::{fs::File, path::Path, str::FromStr};
use std::{fs::File, path::Path};

use anyhow::Result;
use clap::ValueEnum;
Expand Down Expand Up @@ -209,20 +209,6 @@ pub enum ProverMode {
Mock,
}

impl FromStr for ProverMode {
type Err = anyhow::Error;

fn from_str(s: &str) -> Result<Self, Self::Err> {
match s {
"cpu" => Ok(Self::Cpu),
"cuda" => Ok(Self::Cuda),
"network" => Ok(Self::Network),
"mock" => Ok(Self::Mock),
_ => Err(anyhow::anyhow!("invalid prover mode")),
}
}
}

#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum ProofSystem {
Plonk,
Expand Down

0 comments on commit ddc6b59

Please sign in to comment.