diff options
| author | Lzu Tao <taolzu@gmail.com> | 2020-01-10 18:56:30 +0000 |
|---|---|---|
| committer | Lzu Tao <taolzu@gmail.com> | 2020-01-10 18:56:30 +0000 |
| commit | ea6bb7fe17395545a8f22563ed831ac5d2b4389f (patch) | |
| tree | 41eacbcbd20c78836c484b6ddb3bcc779c9db1d7 /src/libstd | |
| parent | eca1e8bd9beeaabbc240ad342892f26998ad7f35 (diff) | |
| download | rust-ea6bb7fe17395545a8f22563ed831ac5d2b4389f.tar.gz rust-ea6bb7fe17395545a8f22563ed831ac5d2b4389f.zip | |
Inline `AsRef<Path> for str`
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/path.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/path.rs b/src/libstd/path.rs index f00ef269309..7ea642942dd 100644 --- a/src/libstd/path.rs +++ b/src/libstd/path.rs @@ -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) } |
