Mark str::split_at inline
This commit is contained in:
parent
235d77457d
commit
80e7a1be35
1 changed files with 1 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue