diff options
-rw-r--r-- | tests/common/mod.rs | 3 | ||||
-rw-r--r-- | tests/construction.rs | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/tests/common/mod.rs b/tests/common/mod.rs index 8714a36..4a39097 100644 --- a/tests/common/mod.rs +++ b/tests/common/mod.rs @@ -1,4 +1,5 @@ -use hal::i2c::{ Mock as I2cMock, Transaction as I2cTrans }; +extern crate embedded_hal_mock as hal; +use self::hal::i2c::{ Mock as I2cMock, Transaction as I2cTrans }; extern crate ads1x1x; use self::ads1x1x::{ Ads1x1x, interface, ic, SlaveAddr, mode }; diff --git a/tests/construction.rs b/tests/construction.rs index 5f22801..67bab52 100644 --- a/tests/construction.rs +++ b/tests/construction.rs @@ -1,5 +1,3 @@ -extern crate embedded_hal_mock as hal; - #[macro_use] #[allow(unused)] mod common; |