mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-21 11:23:03 +00:00
Rollup merge of #38764 - Aaronepower:master, r=aturon
Added Default impl to PathBuf
This commit is contained in:
commit
4cde461bb0
@ -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")]
|
||||
impl<'a> From<&'a Path> for Cow<'a, Path> {
|
||||
#[inline]
|
||||
|
Loading…
Reference in New Issue
Block a user