Rollup merge of #25412 - koute:master, r=alexcrichton
Every time I profile my code I find something new to add #[inline] to. (:
This commit is contained in:
commit
609b4a117c
@ -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…
Reference in New Issue
Block a user