Make "into_urllink" function public
This commit is contained in:
parent
4796d5caa4
commit
f8f6a2e8ea
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ pub struct Link {
|
|||
impl Link {
|
||||
|
||||
/// Translate a `Link` into a `UrlLink`
|
||||
fn into_urllink(self) -> Result<UrlLink> {
|
||||
pub fn into_urllink(self) -> Result<UrlLink> {
|
||||
Url::parse(&self.link[..])
|
||||
.map(move |link| UrlLink { title: self.title, link: link, })
|
||||
.map_err(Box::new)
|
||||
|
|
Loading…
Reference in a new issue