Rollup merge of #38764 - Aaronepower:master, r=aturon

Added Default impl to PathBuf
This commit is contained in:
Corey Farwell 2017-02-07 22:54:19 -05:00 committed by GitHub
commit 4cde461bb0

View File

@ -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]