summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorflip1995 <hello@philkrones.com>2019-08-27 10:49:49 +0200
committerMatthias Beyer <mail@beyermatthias.de>2019-08-28 18:18:40 +0200
commit839f39435a8a5e1970284bceac7415dbd828a670 (patch)
treea292d3fdf8d992c5d66ab00954860ed444853750
parent28e693bdeadb355c47baf49a1ddb3bb09611b14a (diff)
[Auto] lib/entry/gps: Fix Clippy warnings
Signed-off-by: flip1995 <hello@philkrones.com> Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--lib/entry/libimagentrygps/src/types.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/entry/libimagentrygps/src/types.rs b/lib/entry/libimagentrygps/src/types.rs
index 8086b1f2..fdc7b907 100644
--- a/lib/entry/libimagentrygps/src/types.rs
+++ b/lib/entry/libimagentrygps/src/types.rs
@@ -88,17 +88,17 @@ impl FromValue for GPSValue {
Value::Table(ref map) => {
Ok(GPSValue::new(
map.get("degree")
- .ok_or_else(|| Error::from(err_msg("Degree missing")))
+ .ok_or_else(|| err_msg("Degree missing"))
.and_then(&int_to_appropriate_width)?,
map
.get("minutes")
- .ok_or_else(|| Error::from(err_msg("Minutes missing")))
+ .ok_or_else(|| err_msg("Minutes missing"))
.and_then(&int_to_appropriate_width)?,
map
.get("seconds")
- .ok_or_else(|| Error::from(err_msg("Seconds missing")))
+ .ok_or_else(|| err_msg("Seconds missing"))
.and_then(&int_to_appropriate_width)?
))
}
@@ -156,7 +156,7 @@ impl FromValue for Coordinates {
.and_then(|t| {
let get = |m: &Map<_, _>, what: &'static str, ek| -> Result<GPSValue> {
m.get(what)
- .ok_or_else(|| Error::from(err_msg(ek)))
+ .ok_or_else(|| err_msg(ek))
.and_then(GPSValue::from_value)
};