diff --git a/lib/entry/libimagentryurl/src/link.rs b/lib/entry/libimagentryurl/src/link.rs index 8c5e8e98..286367d5 100644 --- a/lib/entry/libimagentryurl/src/link.rs +++ b/lib/entry/libimagentryurl/src/link.rs @@ -70,7 +70,7 @@ impl Link for Entry { .context(format_err!("Error reading header 'url.uri' from '{}'", self.get_location())) .context(EM::EntryHeaderReadError) .map_err(Error::from)? - .unwrap_or_else(|| Default::default()); + .unwrap_or_else(Default::default); debug!("Partial deserialized: {:?}", partial); diff --git a/lib/entry/libimagentryurl/src/linker.rs b/lib/entry/libimagentryurl/src/linker.rs index a6d9a3ad..703ccabc 100644 --- a/lib/entry/libimagentryurl/src/linker.rs +++ b/lib/entry/libimagentryurl/src/linker.rs @@ -113,7 +113,7 @@ impl UrlLinker for Entry { file.set_url(link)?; // then add an internal link to the new file or return an error if this fails - let _ = self.add_link(&mut file)?; + self.add_link(&mut file)?; debug!("Added linking: {:?} <-> {:?}", self.get_location(), file.get_location()); Ok((link_already_exists, file_id))