From e4a1ac5a04d021ef026c559354e9913ae59864d8 Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Wed, 21 Nov 2018 09:19:11 +0100 Subject: Move statement to a better place --- tests/common/mod.rs | 1 + tests/construction.rs | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/common/mod.rs b/tests/common/mod.rs index 4a39097..d81494f 100644 --- a/tests/common/mod.rs +++ b/tests/common/mod.rs @@ -3,6 +3,7 @@ use self::hal::i2c::{ Mock as I2cMock, Transaction as I2cTrans }; extern crate ads1x1x; use self::ads1x1x::{ Ads1x1x, interface, ic, SlaveAddr, mode }; +#[allow(unused)] pub const DEVICE_ADDRESS : u8 = 0b100_1000; pub struct Register; diff --git a/tests/construction.rs b/tests/construction.rs index cb5d9cd..459e5a8 100644 --- a/tests/construction.rs +++ b/tests/construction.rs @@ -1,4 +1,3 @@ -#[allow(unused)] mod common; use common::{ new_ads1013, destroy_ads1013, new_ads1113, destroy_ads1113, new_ads1014, destroy_ads1014, new_ads1114, destroy_ads1114, -- cgit v1.2.3-54-g00ecf