mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 20:45:45 +03:00
inline impl AsRef<Path> for PathBuf
This commit is contained in:
@@ -2671,6 +2671,7 @@ fn as_ref(&self) -> &Path {
|
||||
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl AsRef<Path> for PathBuf {
|
||||
#[inline]
|
||||
fn as_ref(&self) -> &Path {
|
||||
self
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user