Implement BookmarkCollection::remove_link()
This commit is contained in:
parent
d5c6af884b
commit
91e3b58f3e
1 changed files with 8 additions and 2 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue