From 2c9fb1b4a40bc2e3ae5ebff558e5835a47c7b40b Mon Sep 17 00:00:00 2001 From: Mark Date: Sat, 28 Oct 2023 14:07:10 +0200 Subject: [PATCH] fix bug --- mers_lib/src/program/configs/with_iters.rs | 8 ++++---- mers_lib/src/program/configs/with_multithreading.rs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mers_lib/src/program/configs/with_iters.rs b/mers_lib/src/program/configs/with_iters.rs index fe5ffc3..f162fcd 100755 --- a/mers_lib/src/program/configs/with_iters.rs +++ b/mers_lib/src/program/configs/with_iters.rs @@ -46,10 +46,10 @@ impl Config { .collect::>>(), ) { for f in f { - let ret = f.0(&iter)?; - if !ret.is_zero_tuple() { - return Err(format!("for_each function must return (), not {ret}").into()); - } + let _ret = f.0(&iter)?; + // if !ret.is_zero_tuple() { + // return Err(format!("for_each function must return (), not {ret}").into()); + // } } } else { return Err(format!( diff --git a/mers_lib/src/program/configs/with_multithreading.rs b/mers_lib/src/program/configs/with_multithreading.rs index 352801b..84f43ce 100755 --- a/mers_lib/src/program/configs/with_multithreading.rs +++ b/mers_lib/src/program/configs/with_multithreading.rs @@ -83,7 +83,7 @@ impl Config { let mut out = Type::empty(); for t in a.types.iter() { if let Some(t) = t.as_any().downcast_ref::() { - out.add(Arc::new(Clone::clone(t))); + out.add(Arc::new(Clone::clone(&t.0))); } else { return Err(CheckError::new().msg(format!("Cannot call thread_await on a value of type {t}, which isn't a thread but part of the argument {a}."))); }