neon-bindings / neon

Rust bindings for writing safe and fast native Node.js modules.
https://www.neon-bindings.com/
Apache License 2.0
8k stars 283 forks source link

`strict_equals` has an overly strict lifetime #964

Open kjvalencik opened 1 year ago

kjvalencik commented 1 year ago

Consider the case of execute_scoped. It's valid to perform a strict_equals where Context has a shorter lifetime than other.

This method should have an additional lifetime parameter.

https://docs.rs/neon/0.10.1/neon/handle/struct.Handle.html#method.strict_equals