diff options
| author | Diego Barrios Romero <eldruin@gmail.com> | 2020-06-21 22:52:41 +0200 | 
|---|---|---|
| committer | Diego Barrios Romero <eldruin@gmail.com> | 2020-06-21 22:52:41 +0200 | 
| commit | 6aed921780dbe12c058e0aa0ce8b617e404b5a87 (patch) | |
| tree | 3b76c4d8946aede3e48fcfade62a2e19488ee118 /tests/mux.rs | |
| parent | b7e9c9acf1bb42f4966930354135782bab57394a (diff) | |
| download | ads1x1x-async-6aed921780dbe12c058e0aa0ce8b617e404b5a87.tar.gz ads1x1x-async-6aed921780dbe12c058e0aa0ce8b617e404b5a87.tar.xz ads1x1x-async-6aed921780dbe12c058e0aa0ce8b617e404b5a87.zip | |
Use edition 2018
Diffstat (limited to 'tests/mux.rs')
| -rw-r--r-- | tests/mux.rs | 10 | 
1 files changed, 3 insertions, 7 deletions
| diff --git a/tests/mux.rs b/tests/mux.rs index 309656e..b539ebe 100644 --- a/tests/mux.rs +++ b/tests/mux.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; +use embedded_hal_mock::i2c::Transaction as I2cTrans; +use nb::block;  mod common; -use common::{ +use crate::common::{      destroy_ads1015 as destroy, new_ads1015 as new, BitFlags as BF, Config, Register,      DEVICE_ADDRESS as DEV_ADDR,  }; | 
