1
Fork 0

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:
Mark Simulacrum 2017-07-04 07:41:33 -06:00 committed by GitHub
commit 32cbbffea2
4 changed files with 16 additions and 16 deletions

View file

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