diff --git a/lib/src/http/uri/uri.rs b/lib/src/http/uri/uri.rs index ffbde189..676bc8ee 100644 --- a/lib/src/http/uri/uri.rs +++ b/lib/src/http/uri/uri.rs @@ -312,6 +312,13 @@ impl<'a> From<&'a str> for Uri<'a> { } } +impl<'a> From> for Uri<'a> { + #[inline(always)] + fn from(uri: Cow<'a, str>) -> Uri<'a> { + Uri::new(uri) + } +} + impl From for Uri<'static> { #[inline(always)] fn from(uri: String) -> Uri<'static> {