diff options
| author | Ulrik Sverdrup <bluss@users.noreply.github.com> | 2016-03-23 22:02:36 +0100 |
|---|---|---|
| committer | Ulrik Sverdrup <bluss@users.noreply.github.com> | 2016-03-23 22:03:06 +0100 |
| commit | 80e7a1be359fc0de4eb17056230ae2fc130b7090 (patch) | |
| tree | 976e95e169619e2a9c90e003ef953dc85f34de12 /src/libcore/str | |
| parent | 235d77457d80b549dad3ac36d94f235208a1eafb (diff) | |
| download | rust-80e7a1be359fc0de4eb17056230ae2fc130b7090.tar.gz rust-80e7a1be359fc0de4eb17056230ae2fc130b7090.zip | |
Mark str::split_at inline
Diffstat (limited to 'src/libcore/str')
| -rw-r--r-- | src/libcore/str/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs index f9d1902bea7..4584c26bebc 100644 --- a/src/libcore/str/mod.rs +++ b/src/libcore/str/mod.rs @@ -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) { |
