Impl BookmarkCollection::add_link()
This commit is contained in:
parent
db21fa9dd4
commit
2ed07d4f7d
1 changed files with 6 additions and 2 deletions
|
@ -95,8 +95,12 @@ impl<'a> BookmarkCollection<'a> {
|
|||
.map_err_into(BEK::StoreReadError)
|
||||
}
|
||||
|
||||
pub fn add_link(&self, l: Link) -> Result<()> {
|
||||
unimplemented!()
|
||||
pub fn add_link(&mut self, l: Link) -> Result<()> {
|
||||
use link::IntoUrl;
|
||||
|
||||
l.into_url()
|
||||
.and_then(|url| self.add_external_link(self.store, url).map_err_into(BEK::LinkingError))
|
||||
.map_err_into(BEK::LinkError)
|
||||
}
|
||||
|
||||
pub fn get_link(&self, l: Link) -> Result<Link> {
|
||||
|
|
Loading…
Reference in a new issue