Add #[inline] to Borrow<str>::borrow for String.
This commit is contained in:
parent
af522079a2
commit
4bdeb31124
1 changed files with 1 additions and 0 deletions
|
|
@ -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[..] }
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue