[Auto] lib/entry/url: Fix Clippy warnings

Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
flip1995 2019-08-27 10:51:08 +02:00 committed by Matthias Beyer
parent 1569442fee
commit 19a1c41924
2 changed files with 2 additions and 2 deletions

View file

@ -70,7 +70,7 @@ impl Link for Entry {
.context(format_err!("Error reading header 'url.uri' from '{}'", self.get_location())) .context(format_err!("Error reading header 'url.uri' from '{}'", self.get_location()))
.context(EM::EntryHeaderReadError) .context(EM::EntryHeaderReadError)
.map_err(Error::from)? .map_err(Error::from)?
.unwrap_or_else(|| Default::default()); .unwrap_or_else(Default::default);
debug!("Partial deserialized: {:?}", partial); debug!("Partial deserialized: {:?}", partial);

View file

@ -113,7 +113,7 @@ impl UrlLinker for Entry {
file.set_url(link)?; file.set_url(link)?;
// then add an internal link to the new file or return an error if this fails // 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()); debug!("Added linking: {:?} <-> {:?}", self.get_location(), file.get_location());
Ok((link_already_exists, file_id)) Ok((link_already_exists, file_id))