Skip to content

Commit 108293d

Browse files
author
Aaron Power
committed
Added Default impl to PathBuf
1 parent 7b659cf commit 108293d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/libstd/path.rs

+7
Original file line numberDiff line numberDiff line change
@@ -1254,6 +1254,13 @@ impl Borrow<Path> for PathBuf {
12541254
}
12551255
}
12561256

1257+
#[stable(feature = "default_for_pathbuf", since = "1.16.0")]
1258+
impl Default for PathBuf {
1259+
fn default() -> Self {
1260+
PathBuf::new()
1261+
}
1262+
}
1263+
12571264
#[stable(feature = "cow_from_path", since = "1.6.0")]
12581265
impl<'a> From<&'a Path> for Cow<'a, Path> {
12591266
#[inline]

0 commit comments

Comments
 (0)