diff --git a/src/into_url.rs b/src/into_url.rs index 5bf8405..2d51f9c 100644 --- a/src/into_url.rs +++ b/src/into_url.rs @@ -2,6 +2,12 @@ pub trait IntoUrl { fn into_url(self) -> Result; } +impl IntoUrl for url::Url { + fn into_url(self) -> Result { + Ok(self) + } +} + impl<'a> IntoUrl for &'a str { fn into_url(self) -> Result { url::Url::parse(self)