inline impl AsRef<Path> for PathBuf
This commit is contained in:
parent
cd5ab97480
commit
76e698fc56
1 changed files with 1 additions and 0 deletions
|
@ -2671,6 +2671,7 @@ impl AsRef<Path> for String {
|
||||||
|
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
impl AsRef<Path> for PathBuf {
|
impl AsRef<Path> for PathBuf {
|
||||||
|
#[inline]
|
||||||
fn as_ref(&self) -> &Path {
|
fn as_ref(&self) -> &Path {
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue