Skip to content

Commit e1e7b29

Browse files
kelldaeldruin
authored andcommitted
Do not re-export internal macros
1 parent 93e1ed9 commit e1e7b29

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

tm4c123x-hal/src/i2c.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use cortex_m::asm::delay;
1212
use tm4c123x::{I2C0, I2C1, I2C2, I2C3};
1313

1414
pub use tm4c_hal::i2c::Error;
15-
pub use tm4c_hal::{i2c_busy_wait, i2c_hal, i2c_pins};
15+
use tm4c_hal::{i2c_busy_wait, i2c_hal, i2c_pins};
1616

1717
/// I2C peripheral operating in master mode
1818
pub struct I2c<I2C, PINS> {

tm4c123x-hal/src/serial.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
#![allow(clippy::too_many_arguments)]
55

66
pub use tm4c123x::{UART0, UART1, UART2, UART3, UART4, UART5, UART6, UART7};
7-
pub use tm4c_hal::{serial::*, uart_hal_macro, uart_pin_macro};
7+
pub use tm4c_hal::serial::NewlineMode;
8+
use tm4c_hal::{uart_hal_macro, uart_pin_macro};
89

910
#[rustfmt::skip]
1011
use crate::{

tm4c129x-hal/src/serial.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ use nb::{self, block};
1515
use void::Void;
1616

1717
pub use tm4c129x::{UART0, UART1, UART2, UART3, UART4, UART5, UART6, UART7};
18-
pub use tm4c_hal::{serial::*, uart_hal_macro, uart_pin_macro};
18+
pub use tm4c_hal::serial::NewlineMode;
19+
use tm4c_hal::{uart_hal_macro, uart_pin_macro};
1920

2021
/// Serial abstraction
2122
pub struct Serial<UART, TX, RX, RTS, CTS> {

0 commit comments

Comments
 (0)