Added Default impl to PathBuf
This commit is contained in:
parent
7b659cfdbc
commit
108293d4e9
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user