Skip to content

Commit

Permalink
fix implied_bounds_entailment lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lcnr authored Jan 12, 2023
1 parent 731d0a3 commit 1abb59a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ral.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ use ral_registers::{RORegister, RWRegister, WORegister};
pub(super) struct Static<T>(pub(super) *const T);
impl<T> core::ops::Deref for Static<T> {
type Target = T;
fn deref(&self) -> &'static Self::Target {
fn deref(&self) -> &Self::Target {
// Safety: pointer points to static memory (peripheral memory)
unsafe { &*self.0 }
}
Expand Down

0 comments on commit 1abb59a

Please sign in to comment.