libimagentrytag: Replace .err().unwrap() with .unwrap_err()
This commit is contained in:
parent
5d2950b7df
commit
e08986842c
1 changed files with 3 additions and 3 deletions
|
@ -31,7 +31,7 @@ impl Tagable for EntryHeader {
|
||||||
let tags = self.read("imag.tags");
|
let tags = self.read("imag.tags");
|
||||||
if tags.is_err() {
|
if tags.is_err() {
|
||||||
let kind = TagErrorKind::HeaderReadError;
|
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();
|
let tags = tags.unwrap();
|
||||||
|
|
||||||
|
@ -106,7 +106,7 @@ impl Tagable for EntryHeader {
|
||||||
let tags = self.read("imag.tags");
|
let tags = self.read("imag.tags");
|
||||||
if tags.is_err() {
|
if tags.is_err() {
|
||||||
let kind = TagErrorKind::HeaderReadError;
|
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();
|
let tags = tags.unwrap();
|
||||||
|
|
||||||
|
@ -129,7 +129,7 @@ impl Tagable for EntryHeader {
|
||||||
for tag in tags {
|
for tag in tags {
|
||||||
let check = self.has_tag(tag);
|
let check = self.has_tag(tag);
|
||||||
if check.is_err() {
|
if check.is_err() {
|
||||||
return Err(check.err().unwrap());
|
return Err(check.unwrap_err());
|
||||||
}
|
}
|
||||||
let check = check.unwrap();
|
let check = check.unwrap();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue