Skip to content

Commit

Permalink
Use from_array (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriziosestito authored Apr 17, 2023
1 parent 3e2ea4e commit 86b9650
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion native/rhai_rustler/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub fn to_dynamic<'a>(env: Env<'a>, term: &Term<'a>) -> Dynamic {
.map(|item| to_dynamic(env, item))
.collect();

Dynamic::from(items)
Dynamic::from_array(items)
}
TermType::Map => {
let mut object_map = rhai::Map::new();
Expand Down

0 comments on commit 86b9650

Please # to comment.