Skip to content

Commit

Permalink
Added Default impl to PathBuf
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Power committed Jan 1, 2017
1 parent 7b659cf commit 108293d
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 @@ -1254,6 +1254,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 108293d

Please sign in to comment.