Skip to content

Commit

Permalink
Expect Any rather than String
Browse files Browse the repository at this point in the history
  • Loading branch information
dstoza committed Feb 29, 2024
1 parent c5315bd commit d6ce5c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/rune/src/runtime/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1348,7 +1348,7 @@ impl Value {

match result {
Ok(s) => Ok(s),
Err(actual) => Err(RuntimeError::expected::<String>(actual.type_info())),
Err(actual) => Err(RuntimeError::expected_any(actual.type_info())),
}
}

Expand Down

0 comments on commit d6ce5c9

Please sign in to comment.