From 5485d9655e2ab3a6d04e5f69b246f5db4d2c5936 Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Wed, 21 Nov 2018 09:35:37 +0100 Subject: Code formatting --- src/devices/common.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/devices/common.rs') diff --git a/src/devices/common.rs b/src/devices/common.rs index 92b4f9e..57d67b9 100644 --- a/src/devices/common.rs +++ b/src/devices/common.rs @@ -1,7 +1,7 @@ //! Common functions -use { Ads1x1x, Error, Register, BitFlags, interface, Config }; use super::OperatingMode; +use {interface, Ads1x1x, BitFlags, Config, Error, Register}; impl Ads1x1x where @@ -21,7 +21,7 @@ where /// Read whether a measurement is currently in progress. pub fn is_measurement_in_progress(&mut self) -> Result> { let config = Config { - bits: self.iface.read_register(Register::CONFIG)? + bits: self.iface.read_register(Register::CONFIG)?, }; Ok(!config.is_high(BitFlags::OS)) } -- cgit v1.2.3-54-g00ecf