Skip to content

Commit 0514302

Browse files
committed
Allow unused imports and macros
1 parent a602140 commit 0514302

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/timer.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ use enumset::{EnumSet, EnumSetType};
1414
use void::Void;
1515

1616
use crate::hal::timer::{Cancel, CountDown, Periodic};
17+
#[allow(unused)]
1718
use crate::pac::RCC;
1819
use crate::rcc::{Clocks, APB1, APB2};
1920
use crate::time::{duration, fixed_point::FixedPoint, rate::Hertz};
@@ -453,6 +454,7 @@ macro_rules! timer {
453454
};
454455
}
455456

457+
#[allow(unused)]
456458
macro_rules! timer_var_clock {
457459
($($timerXclock:ident, $timXsw:ident, $pclkX:ident, $ppreX:ident),+) => {
458460
$(

src/timer/interrupts.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ macro_rules! single {
108108
};
109109
}
110110

111+
#[allow(unused)]
111112
macro_rules! multi {
112113
([ $($X:literal),+ ]) => {
113114
paste::paste! {

0 commit comments

Comments
 (0)