Added Default impl to PathBuf

This commit is contained in:
Aaron Power 2017-01-01 20:13:59 +00:00
parent 7b659cfdbc
commit 108293d4e9

View File

@ -1254,6 +1254,13 @@ fn borrow(&self) -> &Path {
}
}
#[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]