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/channels.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/channels.rs') diff --git a/src/channels.rs b/src/channels.rs index 90b9b5d..c0f0ff9 100644 --- a/src/channels.rs +++ b/src/channels.rs @@ -1,5 +1,6 @@ //! ADC input channels -use {hal, ic, Ads1x1x, BitFlags as BF, Config}; +use crate::{ic, Ads1x1x, BitFlags as BF, Config}; +use embedded_hal::adc; /// ADC input channel selection #[allow(dead_code)] @@ -36,7 +37,7 @@ pub enum ChannelSelection { macro_rules! impl_channel { ( $IC:ident, $CH:ident ) => { - impl hal::adc::Channel> for channel::$CH { + impl adc::Channel> for channel::$CH { type ID = ChannelSelection; fn channel() -> Self::ID { -- cgit v1.2.3-54-g00ecf