Skip to content

Commit 80e7a1b

Browse files
committed
Mark str::split_at inline
1 parent 235d774 commit 80e7a1b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libcore/str/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1965,6 +1965,7 @@ impl StrExt for str {
19651965
self.find(pat)
19661966
}
19671967

1968+
#[inline]
19681969
fn split_at(&self, mid: usize) -> (&str, &str) {
19691970
// is_char_boundary checks that the index is in [0, .len()]
19701971
if self.is_char_boundary(mid) {

0 commit comments

Comments
 (0)