Convert Intos to Froms.
This commit is contained in:
parent
445077963c
commit
5a97036b69
4 changed files with 12 additions and 12 deletions
|
@ -1349,9 +1349,9 @@ 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()
|
||||
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