Skip to content

Commit 26738de

Browse files
committed
Suppress some unused warnings in timer module
1 parent 295c6ea commit 26738de

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/timer/interrupts.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ pub struct InterruptTypes {
2020
pub(crate) const TIM2: Interrupt = Interrupt::TIM2;
2121
cfg_if::cfg_if! {
2222
if #[cfg(feature = "svd-f301")] {
23+
#[allow(unused)]
2324
pub(crate) const TIM3: Interrupt = Interrupt::TIM3_IRQ;
25+
#[allow(unused)]
2426
pub(crate) const TIM4: Interrupt = Interrupt::TIM4_IRQ;
2527
} else if #[cfg(any(feature = "svd-f303", feature = "svd-f302", feature = "svd-f373"))] {
2628
pub(crate) const TIM3: Interrupt = Interrupt::TIM3;

0 commit comments

Comments
 (0)