mirror of https://github.com/rwf2/Rocket.git
Use explicit associated type in 'IntoOwned' impl.
This commit is contained in:
parent
de9a98edd2
commit
f0c6c9b26f
|
@ -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())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue