From 729c6075045a224724e6b2da6e57721b5d48ab12 Mon Sep 17 00:00:00 2001 From: Kamen Mladenov Date: Mon, 3 Feb 2025 13:36:27 +0200 Subject: fix(zkvms_host_io): Remove useless template parameter to RunWith --- zkvms_host_io/src/lib.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'zkvms_host_io/src') diff --git a/zkvms_host_io/src/lib.rs b/zkvms_host_io/src/lib.rs index 8e49e29..d63cb56 100644 --- a/zkvms_host_io/src/lib.rs +++ b/zkvms_host_io/src/lib.rs @@ -28,14 +28,14 @@ pub enum RunType { } #[derive(Debug, Clone, PartialEq, Eq)] -pub struct RunWith { +pub struct RunWith { pub run_type: RunType, - pub input: T, + pub input: Input, pub default_env: HashMap, } -impl RunWith { - pub fn env_then_or(&self, variable_name: &str, then_apply: fn(String) -> Option, else_const: U) -> U { +impl RunWith { + pub fn env_then_or(&self, variable_name: &str, then_apply: fn(String) -> Option, else_const: T) -> T { env::var(variable_name) .ok() .and_then(then_apply) @@ -53,7 +53,7 @@ impl RunWith { input_macros::generate_output_type_input_struct!(); -pub fn read_args() -> RunWith { +pub fn read_args() -> RunWith { let cli = Cli::parse(); let public_contents: String = if cli.public_input.is_some() { -- cgit v1.2.3