From 6aed921780dbe12c058e0aa0ce8b617e404b5a87 Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Sun, 21 Jun 2020 22:52:41 +0200 Subject: Use edition 2018 --- tests/tier1.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'tests/tier1.rs') diff --git a/tests/tier1.rs b/tests/tier1.rs index 89a60e0..1f1a542 100644 --- a/tests/tier1.rs +++ b/tests/tier1.rs @@ -1,13 +1,9 @@ -#[macro_use(block)] -extern crate nb; -extern crate embedded_hal; -extern crate embedded_hal_mock as hal; -use hal::i2c::Transaction as I2cTrans; -extern crate ads1x1x; use ads1x1x::{channel, DataRate12Bit, DataRate16Bit}; +use embedded_hal_mock::i2c::Transaction as I2cTrans; +use nb::block; mod common; -use common::{ +use crate::common::{ destroy_ads1013, destroy_ads1113, new_ads1013, new_ads1113, BitFlags as BF, Config, Register, DEVICE_ADDRESS as DEV_ADDR, }; -- cgit v1.2.3-54-g00ecf