From 27995905754f4e6c0b15096ac2dc9221c11235bc Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Fri, 10 Jul 2020 22:42:39 +0200 Subject: [PATCH] Fix imports --- tests/alarms.rs | 2 +- tests/configuration.rs | 2 +- tests/construction.rs | 4 +++- tests/datetime.rs | 2 +- tests/ds3232_4.rs | 2 +- tests/ds3234.rs | 2 +- tests/status.rs | 2 +- 7 files changed, 9 insertions(+), 7 deletions(-) diff --git a/tests/alarms.rs b/tests/alarms.rs index e88bca1..3402c8a 100644 --- a/tests/alarms.rs +++ b/tests/alarms.rs @@ -1,6 +1,6 @@ use embedded_hal_mock::{i2c::Transaction as I2cTrans, spi::Transaction as SpiTrans}; mod common; -use common::{ +use self::common::{ destroy_ds3231, destroy_ds3232, destroy_ds3234, new_ds3231, new_ds3232, new_ds3234, BitFlags as BF, Register, DEVICE_ADDRESS as DEV_ADDR, }; diff --git a/tests/configuration.rs b/tests/configuration.rs index 8af0e5d..eda43aa 100644 --- a/tests/configuration.rs +++ b/tests/configuration.rs @@ -2,7 +2,7 @@ use ds323x::SqWFreq; use embedded_hal_mock::{i2c::Transaction as I2cTrans, spi::Transaction as SpiTrans}; mod common; -use common::{ +use self::common::{ destroy_ds3231, destroy_ds3232, destroy_ds3234, new_ds3231, new_ds3232, new_ds3234, BitFlags as BF, Register, CONTROL_POR_VALUE, DEVICE_ADDRESS as DEV_ADDR, DS3231_POR_STATUS, DS323X_POR_STATUS, diff --git a/tests/construction.rs b/tests/construction.rs index 997c43e..a4eab8b 100644 --- a/tests/construction.rs +++ b/tests/construction.rs @@ -1,5 +1,7 @@ mod common; -use common::{destroy_ds3231, destroy_ds3232, destroy_ds3234, new_ds3231, new_ds3232, new_ds3234}; +use self::common::{ + destroy_ds3231, destroy_ds3232, destroy_ds3234, new_ds3231, new_ds3232, new_ds3234, +}; macro_rules! construction_test { ($name:ident, $create:ident, $destroy:ident) => { diff --git a/tests/datetime.rs b/tests/datetime.rs index 5be163b..6e81bfc 100644 --- a/tests/datetime.rs +++ b/tests/datetime.rs @@ -1,6 +1,6 @@ use embedded_hal_mock::{i2c::Transaction as I2cTrans, spi::Transaction as SpiTrans}; mod common; -use common::{ +use self::common::{ destroy_ds3231, destroy_ds3232, destroy_ds3234, new_ds3231, new_ds3232, new_ds3234, Register, DEVICE_ADDRESS as DEV_ADDR, }; diff --git a/tests/ds3232_4.rs b/tests/ds3232_4.rs index ca405f9..e368a8d 100644 --- a/tests/ds3232_4.rs +++ b/tests/ds3232_4.rs @@ -3,7 +3,7 @@ use embedded_hal_mock::{i2c::Transaction as I2cTrans, spi::Transaction as SpiTra #[allow(unused)] mod common; -use common::{ +use self::common::{ destroy_ds3232, destroy_ds3234, new_ds3232, new_ds3234, BitFlags as BF, Register, DEVICE_ADDRESS as DEV_ADDR, DS323X_POR_STATUS, }; diff --git a/tests/ds3234.rs b/tests/ds3234.rs index a14dbd7..e937caf 100644 --- a/tests/ds3234.rs +++ b/tests/ds3234.rs @@ -2,7 +2,7 @@ use embedded_hal_mock::spi::Transaction as SpiTrans; #[allow(unused)] mod common; -use common::{destroy_ds3234, new_ds3234, BitFlags, Register}; +use self::common::{destroy_ds3234, new_ds3234, BitFlags, Register}; call_test!( can_en_temp_conv_bat, diff --git a/tests/status.rs b/tests/status.rs index 1d6ed9d..1e3715e 100644 --- a/tests/status.rs +++ b/tests/status.rs @@ -1,6 +1,6 @@ use embedded_hal_mock::{i2c::Transaction as I2cTrans, spi::Transaction as SpiTrans}; mod common; -use common::{ +use self::common::{ destroy_ds3231, destroy_ds3232, destroy_ds3234, new_ds3231, new_ds3232, new_ds3234, BitFlags as BF, Register, DEVICE_ADDRESS as DEV_ADDR, };