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