diff --git a/src/params.rs b/src/params.rs index c101ff54..3c1531d5 100644 --- a/src/params.rs +++ b/src/params.rs @@ -66,6 +66,12 @@ impl<'a> IntoConnectParams for &'a str { } } +impl IntoConnectParams for String { + fn into_connect_params(self) -> Result> { + self.as_str().into_connect_params() + } +} + impl IntoConnectParams for Url { fn into_connect_params(self) -> Result> { let Url { host, port, user, path: url::Path { mut path, query: options, .. }, .. } = self;