summaryrefslogtreecommitdiffstats
path: root/libimagentrytag
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2016-04-17 21:08:27 +0200
committerMatthias Beyer <mail@beyermatthias.de>2016-04-20 21:45:27 +0200
commite08986842c5a1602adde82d8f9eecd948e7c4975 (patch)
tree168a48ec35d615375236af06ce4f20718fbbc149 /libimagentrytag
parent5d2950b7df890094343da69d5dfab145e63c91a7 (diff)
libimagentrytag: Replace .err().unwrap() with .unwrap_err()
Diffstat (limited to 'libimagentrytag')
-rw-r--r--libimagentrytag/src/tagable.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/libimagentrytag/src/tagable.rs b/libimagentrytag/src/tagable.rs
index bd478a97..4dbe4efb 100644
--- a/libimagentrytag/src/tagable.rs
+++ b/libimagentrytag/src/tagable.rs
@@ -31,7 +31,7 @@ impl Tagable for EntryHeader {
let tags = self.read("imag.tags");
if tags.is_err() {
let kind = TagErrorKind::HeaderReadError;
- return Err(TagError::new(kind, Some(Box::new(tags.err().unwrap()))));
+ return Err(TagError::new(kind, Some(Box::new(tags.unwrap_err()))));
}
let tags = tags.unwrap();
@@ -106,7 +106,7 @@ impl Tagable for EntryHeader {
let tags = self.read("imag.tags");
if tags.is_err() {
let kind = TagErrorKind::HeaderReadError;
- return Err(TagError::new(kind, Some(Box::new(tags.err().unwrap()))));
+ return Err(TagError::new(kind, Some(Box::new(tags.unwrap_err()))));
}
let tags = tags.unwrap();
@@ -129,7 +129,7 @@ impl Tagable for EntryHeader {
for tag in tags {
let check = self.has_tag(tag);
if check.is_err() {
- return Err(check.err().unwrap());
+ return Err(check.unwrap_err());
}
let check = check.unwrap();