From f8f6a2e8eac233b31749ac7da21de87b1401d289 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 5 Feb 2017 15:03:05 +0100 Subject: [PATCH] Make "into_urllink" function public --- libimagentrymarkdown/src/link.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libimagentrymarkdown/src/link.rs b/libimagentrymarkdown/src/link.rs index 267ef344..9f13fe65 100644 --- a/libimagentrymarkdown/src/link.rs +++ b/libimagentrymarkdown/src/link.rs @@ -36,7 +36,7 @@ pub struct Link { impl Link { /// Translate a `Link` into a `UrlLink` - fn into_urllink(self) -> Result { + pub fn into_urllink(self) -> Result { Url::parse(&self.link[..]) .map(move |link| UrlLink { title: self.title, link: link, }) .map_err(Box::new)