From f08055d688c934f9a45293210f6f4155d31b94e0 Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Wed, 21 Nov 2018 08:42:39 +0100 Subject: Move import to common module --- tests/common/mod.rs | 3 ++- 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; -- cgit v1.2.3-54-g00ecf