summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Barrios Romero <eldruin@gmail.com>2018-11-21 08:42:39 +0100
committerDiego Barrios Romero <eldruin@gmail.com>2018-11-21 08:42:39 +0100
commitf08055d688c934f9a45293210f6f4155d31b94e0 (patch)
tree25fbe45d2ba949c42949ee2d5984c364068cac22
parentcd4baeef675af73e5d2c8b4bef4ed3727efc9a45 (diff)
downloadads1x1x-async-f08055d688c934f9a45293210f6f4155d31b94e0.tar.gz
ads1x1x-async-f08055d688c934f9a45293210f6f4155d31b94e0.tar.xz
ads1x1x-async-f08055d688c934f9a45293210f6f4155d31b94e0.zip
Move import to common module
-rw-r--r--tests/common/mod.rs3
-rw-r--r--tests/construction.rs2
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;