Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: don't perform invalid reference cast (#554)
Replaces it with a raw pointer. Avoids possible Undefined Behavior. Stripped-down example of how the current code fails in Miri: [playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=4b7ad1c81275f9213a60443a7edafc4f) Equivalent using the implementation from this PR: [playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=8e64a9b45aa78b8823f5453b9c54d3a5)
- Loading branch information