Convert some Into impls into From impls
This commit is contained in:
parent
7f75bfa1ad
commit
aea2a6f836
9 changed files with 45 additions and 45 deletions
|
@ -158,9 +158,9 @@ impl<T> From<Vec<T>> for P<[T]> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<T> Into<Vec<T>> for P<[T]> {
|
||||
fn into(self) -> Vec<T> {
|
||||
self.into_vec()
|
||||
impl<T> From<P<[T]>> for Vec<T> {
|
||||
fn from(val: P<[T]>) -> Self {
|
||||
val.into_vec()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue