Rollup merge of #38764 - Aaronepower:master, r=aturon
Added Default impl to PathBuf
This commit is contained in:
commit
4cde461bb0
1 changed files with 7 additions and 0 deletions
|
@ -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")]
|
#[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…
Add table
Add a link
Reference in a new issue