Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed compiler errors for Rust 1.73.0 #7

Closed
wants to merge 1 commit into from
Closed

Fixed compiler errors for Rust 1.73.0 #7

wants to merge 1 commit into from

Conversation

Bad-Jubies
Copy link

Compiling with Rust version 1.73.0 produced invalid_reference_casting errors in several places because #![deny(invalid_reference_casting)] is not enabled by default. This PR adds #![allow(invalid_reference_casting)] to the the functions that produce those errors.

@Bad-Jubies
Copy link
Author

Related issue on Rust repo - rust-lang/rust#116410

@Kudaes
Copy link
Owner

Kudaes commented Oct 14, 2023

Hi mate,

Thank you for reporting this, I didn't notice at all. Although your approach works perfectly, I decided to follow "Rust rules" and use the UnsafeCell type to deal with this issue. Last commit should have solved the issue.

Regards.

@Kudaes Kudaes closed this Oct 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants