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 /src/construction.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 'src/construction.rs')
-rw-r--r-- | src/construction.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/construction.rs b/src/construction.rs index 61abb06..e217c85 100644 --- a/src/construction.rs +++ b/src/construction.rs @@ -1,10 +1,11 @@ //! Constructor/destructor functions. -extern crate embedded_hal as hal; +use crate::{ + ic, interface::I2cInterface, mode, Ads1x1x, Config, FullScaleRange, SlaveAddr, + DEVICE_BASE_ADDRESS, +}; use core::marker::PhantomData; -use hal::blocking; -use interface::I2cInterface; -use {ic, mode, Ads1x1x, Config, FullScaleRange, SlaveAddr, DEVICE_BASE_ADDRESS}; +use embedded_hal::blocking; macro_rules! impl_new_destroy { ( $IC:ident, $create:ident, $destroy:ident, $conv:ty ) => { |