Skip to content

Commit

Permalink
Rollup merge of rust-lang#38764 - Aaronepower:master, r=aturon
Browse files Browse the repository at this point in the history
Added Default impl to PathBuf
  • Loading branch information
frewsxcv authored Feb 7, 2017
2 parents c49d102 + 108293d commit a2800cd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/libstd/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1265,6 +1265,13 @@ impl Borrow<Path> for PathBuf {
}
}

#[stable(feature = "default_for_pathbuf", since = "1.16.0")]
impl Default for PathBuf {
fn default() -> Self {
PathBuf::new()
}
}

#[stable(feature = "cow_from_path", since = "1.6.0")]
impl<'a> From<&'a Path> for Cow<'a, Path> {
#[inline]
Expand Down

0 comments on commit a2800cd

Please sign in to comment.