diff options
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 ) => { |