Added Default impl to PathBuf
This commit is contained in:
parent
7b659cfdbc
commit
108293d4e9
@ -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")]
|
#[stable(feature = "cow_from_path", since = "1.6.0")]
|
||||||
impl<'a> From<&'a Path> for Cow<'a, Path> {
|
impl<'a> From<&'a Path> for Cow<'a, Path> {
|
||||||
#[inline]
|
#[inline]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user