From e4ef85a9eadaa20f34ec39b617a3a57d33698b63 Mon Sep 17 00:00:00 2001 From: Dummi26 Date: Wed, 26 Apr 2023 14:18:57 +0200 Subject: [PATCH] fixed bug with function-iterators --- mers/src/script/val_type.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mers/src/script/val_type.rs b/mers/src/script/val_type.rs index 0b15d3b..20d994e 100755 --- a/mers/src/script/val_type.rs +++ b/mers/src/script/val_type.rs @@ -204,7 +204,7 @@ impl VSingleType { // function that takes no inputs if let Some(out) = f.iter().find_map(|(args, out)| { if args.is_empty() { - Some(out.clone()) + Some(out.clone().inner_types()) } else { None }