Implement BookmarkCollection::remove_link()

This commit is contained in:
Matthias Beyer 2016-07-08 16:54:27 +02:00
parent d5c6af884b
commit 91e3b58f3e

View file

@ -114,8 +114,14 @@ impl<'a> BookmarkCollection<'a> {
}) })
} }
pub fn remove_link(&self, l: Link) -> Result<()> { pub fn remove_link(&mut self, l: Link) -> Result<()> {
unimplemented!() use link::IntoUrl;
l.into_url()
.and_then(|url| {
self.remove_external_link(self.store, url).map_err_into(BEK::LinkingError)
})
.map_err_into(BEK::LinkError)
} }
} }