diff --git a/src/client/mod.rs b/src/client/mod.rs index b4d46a38a4..c8aa25f4b4 100644 --- a/src/client/mod.rs +++ b/src/client/mod.rs @@ -335,6 +335,12 @@ impl<'a> IntoUrl for &'a str { } } +impl<'a> IntoUrl for &'a String { + fn into_url(self) -> Result { + Url::parse(self) + } +} + /// Behavior regarding how to handle redirects within a Client. #[derive(Copy)] pub enum RedirectPolicy {