summaryrefslogtreecommitdiffstats
path: root/bin/core/imag-gps/src/lib.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2019-11-23 20:22:31 +0100
committerMatthias Beyer <mail@beyermatthias.de>2019-12-22 19:02:21 +0100
commit0464bfba53255814aadc35d9927c8d0fff2eb00d (patch)
tree1f2f6b26bd37ee639603ac5e3412d05a88b412aa /bin/core/imag-gps/src/lib.rs
parent84bb05035b51b05734eef44657cffd1fdb2950db (diff)
Remove error conversion which is not necessary anymore.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'bin/core/imag-gps/src/lib.rs')
-rw-r--r--bin/core/imag-gps/src/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/core/imag-gps/src/lib.rs b/bin/core/imag-gps/src/lib.rs
index 20c3b495..c58a71de 100644
--- a/bin/core/imag-gps/src/lib.rs
+++ b/bin/core/imag-gps/src/lib.rs
@@ -144,7 +144,7 @@ fn add(rt: &Runtime) -> Result<()> {
.ok_or_else(|| format_err!("No such entry: {}", id))?
.set_coordinates(c.clone())?;
- rt.report_touched(&id).map_err(Error::from)
+ rt.report_touched(&id)
})
.collect()
}
@@ -170,7 +170,7 @@ fn remove(rt: &Runtime) -> Result<()> {
writeln!(rt.stdout(), "{}", removed_value)?;
}
- rt.report_touched(&id).map_err(Error::from)
+ rt.report_touched(&id)
})
.collect()
}
@@ -194,7 +194,7 @@ fn get(rt: &Runtime) -> Result<()> {
writeln!(stdout, "{}", value)?;
- rt.report_touched(&id).map_err(Error::from)
+ rt.report_touched(&id)
})
.collect()
}