Skip to content

Commit 76e698f

Browse files
committed
inline impl AsRef<Path> for PathBuf
1 parent cd5ab97 commit 76e698f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libstd/path.rs

+1
Original file line numberDiff line numberDiff line change
@@ -2671,6 +2671,7 @@ impl AsRef<Path> for String {
26712671

26722672
#[stable(feature = "rust1", since = "1.0.0")]
26732673
impl AsRef<Path> for PathBuf {
2674+
#[inline]
26742675
fn as_ref(&self) -> &Path {
26752676
self
26762677
}

0 commit comments

Comments
 (0)