diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2016-04-17 21:08:16 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2016-04-20 21:45:27 +0200 |
commit | 5d2950b7df890094343da69d5dfab145e63c91a7 (patch) | |
tree | c5b399caf94dc6aee3123abc2cfca9cc7fbd2ad7 /libimagentrylink | |
parent | d01c2d294ec3b3a7afad40499e432f7c9cab2519 (diff) |
libimagentrylink: Replace .err().unwrap() with .unwrap_err()
Diffstat (limited to 'libimagentrylink')
-rw-r--r-- | libimagentrylink/src/external.rs | 2 | ||||
-rw-r--r-- | libimagentrylink/src/internal.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libimagentrylink/src/external.rs b/libimagentrylink/src/external.rs index 9df53cca..6adb8a80 100644 --- a/libimagentrylink/src/external.rs +++ b/libimagentrylink/src/external.rs @@ -173,7 +173,7 @@ impl ExternalLinker for Entry { let file = store.retrieve(file_id.clone()); if file.is_err() { debug!("Failed to create or retrieve an file for this link '{:?}'", link); - return Err(LE::new(LEK::StoreWriteError, Some(Box::new(file.err().unwrap())))); + return Err(LE::new(LEK::StoreWriteError, Some(Box::new(file.unwrap_err())))); } let mut file = file.unwrap(); diff --git a/libimagentrylink/src/internal.rs b/libimagentrylink/src/internal.rs index e22214d1..a410349a 100644 --- a/libimagentrylink/src/internal.rs +++ b/libimagentrylink/src/internal.rs @@ -139,7 +139,7 @@ fn process_rw_result(links: StoreResult<Option<Value>>) -> Result<Vec<Link>> { if links.is_err() { debug!("RW action on store failed. Generating LinkError"); let lerr = LinkError::new(LinkErrorKind::EntryHeaderReadError, - Some(Box::new(links.err().unwrap()))); + Some(Box::new(links.unwrap_err()))); return Err(lerr); } let links = links.unwrap(); |