rp-rs / rp-hal

A Rust Embedded-HAL for the rp series microcontrollers
https://crates.io/crates/rp2040-hal
Apache License 2.0
1.46k stars 237 forks source link

Fix warning with rust 1.82.0 #863

Closed jannic closed 1 month ago

jannic commented 1 month ago

Since rust 1.82.0, addr_of is no longer unsafe: https://github.com/rust-lang/rust/pull/125834

Just removing the unsafe statement would break builds with older versions of rust. Instead, allow the unused_unsafe lint.