rusterlium / rustler

Safe Rust bridge for creating Erlang NIF functions
https://docs.rs/crate/rustler
Apache License 2.0
4.32k stars 225 forks source link

Why does Term::map_from_pairs return a NifResult? #552

Closed radrow closed 1 year ago

radrow commented 1 year ago

I don't understand the circumstances in which it fails. Creating a new map is safe, so should be inserting to something we know is a map. Am I missing something?