diff options
| author | Jan Bujak <j@exia.io> | 2015-05-14 20:54:02 +0200 |
|---|---|---|
| committer | Jan Bujak <j@exia.io> | 2015-05-14 20:54:02 +0200 |
| commit | 4bdeb311246406b9acb11da03be1981f715abdeb (patch) | |
| tree | 8dbae2d64a7d2c2126aebb7e275cb1f9ba43d2ef /src | |
| parent | af522079a2e13046cbf5f426874d7f6b672c501e (diff) | |
| download | rust-4bdeb311246406b9acb11da03be1981f715abdeb.tar.gz rust-4bdeb311246406b9acb11da03be1981f715abdeb.zip | |
Add #[inline] to Borrow<str>::borrow for String.
Diffstat (limited to 'src')
| -rw-r--r-- | src/libcollections/str.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcollections/str.rs b/src/libcollections/str.rs index baef6ba6f01..198627ad2fc 100644 --- a/src/libcollections/str.rs +++ b/src/libcollections/str.rs @@ -396,6 +396,7 @@ macro_rules! utf8_acc_cont_byte { #[stable(feature = "rust1", since = "1.0.0")] impl Borrow<str> for String { + #[inline] fn borrow(&self) -> &str { &self[..] } } |
