diff options
author | Diego Barrios Romero <eldruin@gmail.com> | 2018-11-20 19:34:26 +0100 |
---|---|---|
committer | Diego Barrios Romero <eldruin@gmail.com> | 2018-11-20 19:34:26 +0100 |
commit | ab785e44cd0232f6dbcc3844ee1ffa7719fba2f1 (patch) | |
tree | bce2e001e4e1007aaa6cc868acf2d6308e544401 /src/devices/mode/continuous.rs | |
parent | 97c6165096468e47f020e8cc859f47ebfadc4857 (diff) | |
download | ads1x1x-async-ab785e44cd0232f6dbcc3844ee1ffa7719fba2f1.tar.gz ads1x1x-async-ab785e44cd0232f6dbcc3844ee1ffa7719fba2f1.tar.xz ads1x1x-async-ab785e44cd0232f6dbcc3844ee1ffa7719fba2f1.zip |
Remove unnecessary return
Diffstat (limited to 'src/devices/mode/continuous.rs')
-rw-r--r-- | src/devices/mode/continuous.rs | 2 |
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)) } } |