Make "into_urllink" function public

This commit is contained in:
Matthias Beyer 2017-02-05 15:03:05 +01:00
parent 4796d5caa4
commit f8f6a2e8ea

View file

@ -36,7 +36,7 @@ pub struct Link {
impl Link { impl Link {
/// Translate a `Link` into a `UrlLink` /// Translate a `Link` into a `UrlLink`
fn into_urllink(self) -> Result<UrlLink> { pub fn into_urllink(self) -> Result<UrlLink> {
Url::parse(&self.link[..]) Url::parse(&self.link[..])
.map(move |link| UrlLink { title: self.title, link: link, }) .map(move |link| UrlLink { title: self.title, link: link, })
.map_err(Box::new) .map_err(Box::new)