]> git.lizzy.rs Git - rust.git/commitdiff
Mark str::split_at inline
authorUlrik Sverdrup <bluss@users.noreply.github.com>
Wed, 23 Mar 2016 21:02:36 +0000 (22:02 +0100)
committerUlrik Sverdrup <bluss@users.noreply.github.com>
Wed, 23 Mar 2016 21:03:06 +0000 (22:03 +0100)
src/libcore/str/mod.rs

index f9d1902bea7a7cfe43030c3d940061fdffe88c2a..4584c26bebcc87e70711b870e9c5e130f2856f1f 100644 (file)
@@ -1965,6 +1965,7 @@ fn find_str<'a, P: Pattern<'a>>(&'a self, pat: P) -> Option<usize> {
         self.find(pat)
     }
 
+    #[inline]
     fn split_at(&self, mid: usize) -> (&str, &str) {
         // is_char_boundary checks that the index is in [0, .len()]
         if self.is_char_boundary(mid) {