From ab785e44cd0232f6dbcc3844ee1ffa7719fba2f1 Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Tue, 20 Nov 2018 19:34:26 +0100 Subject: Remove unnecessary return --- src/devices/mode/continuous.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/devices/mode/continuous.rs b/src/devices/mode/continuous.rs index 0740ca2..35cfd7b 100644 --- a/src/devices/mode/continuous.rs +++ b/src/devices/mode/continuous.rs @@ -46,7 +46,7 @@ where return Err(Error::NotStarted); } let value = self.iface.read_register(Register::CONVERSION)?; - return Ok(CONV::convert_measurement(value)); + Ok(CONV::convert_measurement(value)) } } -- cgit v1.2.3-54-g00ecf