Do not ignore errors when collecting links
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
parent
581da9c9cf
commit
19622f41ae
1 changed files with 3 additions and 2 deletions
|
@ -409,10 +409,11 @@ impl ExternalLinker for Entry {
|
|||
debug!("Getting links");
|
||||
self.get_external_links(store)
|
||||
.and_then(|links| {
|
||||
// TODO: Do not ignore errors here
|
||||
let mut links = links.filter_map(Result::ok).collect::<Vec<_>>();
|
||||
let mut links = links.collect::<Result<Vec<_>>>()?;
|
||||
|
||||
debug!("Adding link = '{:?}' to links = {:?}", link, links);
|
||||
links.push(link);
|
||||
|
||||
debug!("Setting {} links = {:?}", links.len(), links);
|
||||
self.set_external_links(store, links)
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue