Rocket

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit f0c6c9b26f2bb08531b450024b6b52d79644fa8e
parent de9a98edd2a3c97821f93e261f654fd69ce60de2
Author: Sergio Benitez <sb@sergio.bz>
Date:   Wed,  6 Feb 2019 19:37:39 -0800

Use explicit associated type in 'IntoOwned' impl.

Diffstat:
Mcore/http/src/ext.rs | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/http/src/ext.rs b/core/http/src/ext.rs @@ -94,7 +94,7 @@ impl<'a, B: 'static + ToOwned + ?Sized> IntoOwned for Cow<'a, B> { type Owned = Cow<'static, B>; #[inline(always)] - fn into_owned(self) -> Self::Owned { + fn into_owned(self) -> <Self as IntoOwned>::Owned { Cow::Owned(self.into_owned()) } }