summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-08-03 16:44:19 +0200
committerMatthias Beyer <mail@beyermatthias.de>2020-09-02 12:22:32 +0200
commit836fd69eca344dac7a18aab28ca5b410d4cdd2d6 (patch)
treecc60fa891eb41d7f11a28db505fc2a0ceda07e2b /bin
parent48ba74e3e11b72d032494ad62fc03b1066fa8d9a (diff)
downloadimag-master.tar.gz
imag-master.tar.xz
Diffstat (limited to 'bin')
-rw-r--r--bin/core/imag-gps/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/core/imag-gps/src/lib.rs b/bin/core/imag-gps/src/lib.rs
index 594f5926..b276ef36 100644
--- a/bin/core/imag-gps/src/lib.rs
+++ b/bin/core/imag-gps/src/lib.rs
@@ -115,7 +115,7 @@ fn add(rt: &Runtime) -> Result<()> {
let ary = value.split('.')
.map(|v| {debug!("Parsing = {}", v); v})
.map(FromStr::from_str)
- .map(|elem| elem.or_else(|_| Err(anyhow!("Error while converting number"))))
+ .map(|elem| elem.map_err(|_| anyhow!("Error while converting number")))
.collect::<Result<Vec<i64>>>()?;
let degree = ary.get(0).ok_or_else(|| anyhow!("Degree missing. This value is required."))?;