From 1abb59ad9c26d5ebca523a3bef7392a699688742 Mon Sep 17 00:00:00 2001 From: lcnr Date: Thu, 12 Jan 2023 15:40:03 +0100 Subject: [PATCH] fix `implied_bounds_entailment` lint --- src/ral.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ral.rs b/src/ral.rs index 3713f20..d190cba 100644 --- a/src/ral.rs +++ b/src/ral.rs @@ -27,7 +27,7 @@ use ral_registers::{RORegister, RWRegister, WORegister}; pub(super) struct Static(pub(super) *const T); impl core::ops::Deref for Static { 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 } }