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 --- src/construction.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/construction.rs') 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 ) => { -- cgit v1.2.3-54-g00ecf