libimagentrylink: Replace .err().unwrap() with .unwrap_err()
This commit is contained in:
parent
d01c2d294e
commit
5d2950b7df
2 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||||
|
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue