From 08169250954d62d9145aa9b819000edd904e75a6 Mon Sep 17 00:00:00 2001 From: Max Audron Date: Sat, 16 Oct 2021 13:02:59 +0200 Subject: make util functions world public --- src/util/web.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/util/web.rs') diff --git a/src/util/web.rs b/src/util/web.rs index fec7bb0..b9f44c1 100644 --- a/src/util/web.rs +++ b/src/util/web.rs @@ -4,12 +4,12 @@ use reqwest::{get, Url}; use urlparse::quote_plus as urlparse_quote_plus; #[async_trait] -pub(crate) trait UrlShortener { +pub trait UrlShortener { fn new() -> Self; async fn shorten(&self, url: &str) -> Result; } -pub(crate) struct IsgdUrlShortener {} +pub struct IsgdUrlShortener {} #[async_trait] impl UrlShortener for IsgdUrlShortener { @@ -31,7 +31,7 @@ impl UrlShortener for IsgdUrlShortener { } } -pub(crate) fn quote_plus(text: &str) -> Result { +pub fn quote_plus(text: &str) -> Result { Ok(urlparse_quote_plus(text, b"")?) } -- cgit v1.2.3