libimagentrylink: Replace .err().unwrap() with .unwrap_err()

This commit is contained in:
Matthias Beyer 2016-04-17 21:08:16 +02:00
parent d01c2d294e
commit 5d2950b7df
2 changed files with 2 additions and 2 deletions

View file

@ -173,7 +173,7 @@ impl ExternalLinker for Entry {
let file = store.retrieve(file_id.clone()); let file = store.retrieve(file_id.clone());
if file.is_err() { if file.is_err() {
debug!("Failed to create or retrieve an file for this link '{:?}'", link); 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(); let mut file = file.unwrap();

View file

@ -139,7 +139,7 @@ fn process_rw_result(links: StoreResult<Option<Value>>) -> Result<Vec<Link>> {
if links.is_err() { if links.is_err() {
debug!("RW action on store failed. Generating LinkError"); debug!("RW action on store failed. Generating LinkError");
let lerr = LinkError::new(LinkErrorKind::EntryHeaderReadError, let lerr = LinkError::new(LinkErrorKind::EntryHeaderReadError,
Some(Box::new(links.err().unwrap()))); Some(Box::new(links.unwrap_err())));
return Err(lerr); return Err(lerr);
} }
let links = links.unwrap(); let links = links.unwrap();