summaryrefslogtreecommitdiffstats
path: root/src/devices/mode
diff options
context:
space:
mode:
authorDiego Barrios Romero <eldruin@gmail.com>2018-11-20 19:34:26 +0100
committerDiego Barrios Romero <eldruin@gmail.com>2018-11-20 19:34:26 +0100
commitab785e44cd0232f6dbcc3844ee1ffa7719fba2f1 (patch)
treebce2e001e4e1007aaa6cc868acf2d6308e544401 /src/devices/mode
parent97c6165096468e47f020e8cc859f47ebfadc4857 (diff)
downloadads1x1x-async-ab785e44cd0232f6dbcc3844ee1ffa7719fba2f1.tar.gz
ads1x1x-async-ab785e44cd0232f6dbcc3844ee1ffa7719fba2f1.tar.xz
ads1x1x-async-ab785e44cd0232f6dbcc3844ee1ffa7719fba2f1.zip
Remove unnecessary return
Diffstat (limited to 'src/devices/mode')
-rw-r--r--src/devices/mode/continuous.rs2
1 files changed, 1 insertions, 1 deletions
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))
}
}