Skip to content

Commit

Permalink
Mark str::split_at inline
Browse files Browse the repository at this point in the history
  • Loading branch information
bluss committed Mar 23, 2016
1 parent 235d774 commit 80e7a1b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libcore/str/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1965,6 +1965,7 @@ impl StrExt for str {
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) {
Expand Down

0 comments on commit 80e7a1b

Please sign in to comment.