Add #[inline] to Borrow<str>::borrow for String.

This commit is contained in:
Jan Bujak 2015-05-14 20:54:02 +02:00
parent af522079a2
commit 4bdeb31124

View file

@ -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[..] }
}