Skip to content

Conversation

@diondokter
Copy link

With recent compiler versions we get warnings for this code where it suggests using addr_of! to avoid taking the intermediate reference to a static mut variable.

However, there's no clear reason why these even need to be mut. Embassy-boot doesn't use mut. So let's change it so people copying this don't get that same unhelpful warning.

With recent compiler versions we get warnings for this code where it suggests using `addr_of!` to avoid taking the intermediate reference to a static mut variable. However, there's no clear reason why these even need to be mut. Embassy-boot doesn't use mut. So let's change it so people copying this don't get that same unhelpful warning.
@diondokter diondokter requested a review from a team as a code owner March 28, 2024 08:42
@diondokter
Copy link
Author

Ok, so my changes don't work, but also this file appears to be full of UB...
So I'm gonna close this PR for now

@diondokter diondokter closed this Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant