diff --git a/libimagbookmark/src/collection.rs b/libimagbookmark/src/collection.rs index bd6b8b22..f5b0e4d4 100644 --- a/libimagbookmark/src/collection.rs +++ b/libimagbookmark/src/collection.rs @@ -103,7 +103,7 @@ impl<'a> BookmarkCollection<'a> { .map_err_into(BEK::LinkError) } - pub fn get_links_matching(&self, r: Regex) -> Result> { + pub fn get_links_matching(&self, r: Regex) -> Result> { self.get_external_links(self.store) .map_err_into(BEK::LinkError) .map(|v| { @@ -111,7 +111,7 @@ impl<'a> BookmarkCollection<'a> { .map(Url::into_string) .filter(|urlstr| r.is_match(&urlstr[..])) .map(Link::from) - .next() + .collect() }) }