Skip to content

Commit ea6bb7f

Browse files
committed
Inline AsRef<Path> for str
1 parent eca1e8b commit ea6bb7f

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
@@ -2655,6 +2655,7 @@ impl AsRef<Path> for OsString {
26552655

26562656
#[stable(feature = "rust1", since = "1.0.0")]
26572657
impl AsRef<Path> for str {
2658+
#[inline]
26582659
fn as_ref(&self) -> &Path {
26592660
Path::new(self)
26602661
}

0 commit comments

Comments
 (0)