diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2016-07-08 16:41:37 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2016-07-08 16:41:37 +0200 |
commit | 2c93c8b98f64b3c0df19272752b685d225a31d95 (patch) | |
tree | db16266c3871f38ebb2eb1972ac99e4fd48cd64b /libimagbookmark | |
parent | 2e49947013f75ef0d008e783bad1126801e307b9 (diff) |
fixup! Impl BookmarkCollection::get_links_matching()
Diffstat (limited to 'libimagbookmark')
-rw-r--r-- | libimagbookmark/src/collection.rs | 4 |
1 files 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<Option<Link>> { + pub fn get_links_matching(&self, r: Regex) -> Result<Vec<Link>> { 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() }) } |