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/devices/features/tier1.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/devices/features/tier1.rs') diff --git a/src/devices/features/tier1.rs b/src/devices/features/tier1.rs index 9e5cb77..0c940ee 100644 --- a/src/devices/features/tier1.rs +++ b/src/devices/features/tier1.rs @@ -1,6 +1,8 @@ //! Common functions -use {ic, interface, Ads1x1x, BitFlags as BF, DataRate12Bit, DataRate16Bit, Error, Register}; +use crate::{ + ic, interface, Ads1x1x, BitFlags as BF, DataRate12Bit, DataRate16Bit, Error, Register, +}; impl Ads1x1x where @@ -8,7 +10,7 @@ where { /// Set data rate pub fn set_data_rate(&mut self, rate: DataRate12Bit) -> Result<(), Error> { - use DataRate12Bit as DR; + use crate::DataRate12Bit as DR; let cfg = self.config.clone(); let config = match rate { DR::Sps128 => cfg.with_low(BF::DR2).with_low(BF::DR1).with_low(BF::DR0), @@ -31,7 +33,7 @@ where { /// Set data rate pub fn set_data_rate(&mut self, rate: DataRate16Bit) -> Result<(), Error> { - use DataRate16Bit as DR; + use crate::DataRate16Bit as DR; let cfg = self.config.clone(); let config = match rate { DR::Sps8 => cfg.with_low(BF::DR2).with_low(BF::DR1).with_low(BF::DR0), -- cgit v1.2.3-54-g00ecf