Skip to content

Commit c19e735

Browse files
committed
clippy
1 parent 74ce5e0 commit c19e735

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/uart.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -271,17 +271,15 @@ impl Instance for pac::UART4 {
271271
}
272272
}
273273

274-
use crate::serial::halUsart;
275-
276274
#[cfg(feature = "uart5")]
277275
#[cfg(any(feature = "stm32f413", feature = "stm32f423"))]
278-
halUsart! { pac::UART5, uart5, Serial5, Rx5, Tx5 }
276+
crate::serial::halUsart! { pac::UART5, uart5, Serial5, Rx5, Tx5 }
279277

280278
#[cfg(feature = "uart7")]
281-
halUsart! { pac::UART7, uart7, Serial7, Rx7, Tx7 }
279+
crate::serial::halUsart! { pac::UART7, uart7, Serial7, Rx7, Tx7 }
282280
#[cfg(feature = "uart8")]
283-
halUsart! { pac::UART8, uart8, Serial8, Rx8, Tx8 }
281+
crate::serial::halUsart! { pac::UART8, uart8, Serial8, Rx8, Tx8 }
284282
#[cfg(feature = "uart9")]
285-
halUsart! { pac::UART9, uart9, Serial9, Rx9, Tx9 }
283+
crate::serial::halUsart! { pac::UART9, uart9, Serial9, Rx9, Tx9 }
286284
#[cfg(feature = "uart10")]
287-
halUsart! { pac::UART10, uart10, Serial10, Rx10, Tx10 }
285+
crate::serial::halUsart! { pac::UART10, uart10, Serial10, Rx10, Tx10 }

0 commit comments

Comments
 (0)