From 40c35f715ea912c3bf5f182980753978f1fabccc Mon Sep 17 00:00:00 2001 From: datdenkikniet Date: Sat, 4 Feb 2023 15:25:13 +0100 Subject: [PATCH] Silence this warning --- src/peripherals.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/peripherals.rs b/src/peripherals.rs index dbeef4ed..cdd5dc7e 100644 --- a/src/peripherals.rs +++ b/src/peripherals.rs @@ -196,6 +196,7 @@ mod pac_override_impl { #[doc = r"Return the pointer to the register block"] #[inline(always)] + #[cfg_attr(not(feature = "ptp"), allow(unused))] pub const fn ptr() -> *const MacRegisterBlock { Self::PTR }