Rollup merge of #42227 - ollie27:into_to_from, r=aturon
Convert Intos to Froms. This is a resubmission of #42129 without `impl<T> From<Vec<T>> for Box<[T]>`.
This commit is contained in:
commit
32cbbffea2
4 changed files with 16 additions and 16 deletions
|
@ -1348,10 +1348,10 @@ impl From<Box<Path>> for PathBuf {
|
|||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "box_from_path_buf", since = "1.18.0")]
|
||||
impl Into<Box<Path>> for PathBuf {
|
||||
fn into(self) -> Box<Path> {
|
||||
self.into_boxed_path()
|
||||
#[stable(feature = "box_from_path_buf", since = "1.20.0")]
|
||||
impl From<PathBuf> for Box<Path> {
|
||||
fn from(p: PathBuf) -> Box<Path> {
|
||||
p.into_boxed_path()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue