From 19a1c41924c25a4e268e83d715b92e8e1737d39a Mon Sep 17 00:00:00 2001 From: flip1995 Date: Tue, 27 Aug 2019 10:51:08 +0200 Subject: [PATCH] [Auto] lib/entry/url: Fix Clippy warnings Signed-off-by: flip1995 Signed-off-by: Matthias Beyer --- lib/entry/libimagentryurl/src/link.rs | 2 +- lib/entry/libimagentryurl/src/linker.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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))