[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:
parent
1569442fee
commit
19a1c41924
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue