From 2c93c8b98f64b3c0df19272752b685d225a31d95 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Fri, 8 Jul 2016 16:41:37 +0200 Subject: [PATCH] fixup! Impl BookmarkCollection::get_links_matching() --- libimagbookmark/src/collection.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() }) }