Fix imports

pull/5/head v0.3.1
Diego Barrios Romero 2020-07-10 22:42:39 +02:00
parent 5414721d1d
commit 2799590575
7 changed files with 9 additions and 7 deletions

View File

@ -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,
};

View File

@ -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,

View File

@ -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) => {

View File

@ -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,
};

View File

@ -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,
};

View File

@ -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,

View File

@ -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,
};