Use explicit associated type in 'IntoOwned' impl.

This commit is contained in:
Sergio Benitez 2019-02-06 19:37:39 -08:00
parent de9a98edd2
commit f0c6c9b26f
1 changed files with 1 additions and 1 deletions

View File

@ -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())
}
}