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.