Skip to content

Commit 3428942

Browse files
committed
Fix clippy lint
clippy::inconsistent-struct-constructor
1 parent 4bd0801 commit 3428942

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/delay.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ impl Delay {
1919
pub fn new(mut syst: SYST, clocks: Clocks) -> Self {
2020
syst.set_clock_source(SystClkSource::Core);
2121

22-
Delay { syst, clocks }
22+
Delay { clocks, syst }
2323
}
2424

2525
/// Releases the system timer (SysTick) resource

0 commit comments

Comments
 (0)