From d6ce5c961b11a90599d3c3ad5ac3a23b69db1dbc Mon Sep 17 00:00:00 2001 From: Dan Stoza Date: Thu, 29 Feb 2024 10:18:51 -0800 Subject: [PATCH] Expect Any rather than String --- crates/rune/src/runtime/value.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/rune/src/runtime/value.rs b/crates/rune/src/runtime/value.rs index 7a0b6e6db..a7b621f13 100644 --- a/crates/rune/src/runtime/value.rs +++ b/crates/rune/src/runtime/value.rs @@ -1348,7 +1348,7 @@ impl Value { match result { Ok(s) => Ok(s), - Err(actual) => Err(RuntimeError::expected::(actual.type_info())), + Err(actual) => Err(RuntimeError::expected_any(actual.type_info())), } }