From 3b179ba2d490f9c60be090099b7bb55a0a4353bc Mon Sep 17 00:00:00 2001 From: Mark Date: Fri, 27 Oct 2023 14:45:37 +0200 Subject: [PATCH] adjust &list.pop return type to match actual return type --- mers_lib/src/program/configs/with_list.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mers_lib/src/program/configs/with_list.rs b/mers_lib/src/program/configs/with_list.rs index 249a7ff..1d98bd5 100755 --- a/mers_lib/src/program/configs/with_list.rs +++ b/mers_lib/src/program/configs/with_list.rs @@ -38,7 +38,10 @@ impl Config { ).into()); } } - Ok(out) + Ok(Type::newm(vec![ + Arc::new(Type::new(data::tuple::TupleT(vec![out]))), + Arc::new(Type::empty_tuple()) + ])) } else { return Err(format!("pop: not a reference: {a}").into()); }