about summary refs log tree commit diff
path: root/src/libcore/str
diff options
context:
space:
mode:
authorUlrik Sverdrup <bluss@users.noreply.github.com>2016-03-23 22:02:36 +0100
committerUlrik Sverdrup <bluss@users.noreply.github.com>2016-03-23 22:03:06 +0100
commit80e7a1be359fc0de4eb17056230ae2fc130b7090 (patch)
tree976e95e169619e2a9c90e003ef953dc85f34de12 /src/libcore/str
parent235d77457d80b549dad3ac36d94f235208a1eafb (diff)
downloadrust-80e7a1be359fc0de4eb17056230ae2fc130b7090.tar.gz
rust-80e7a1be359fc0de4eb17056230ae2fc130b7090.zip
Mark str::split_at inline
Diffstat (limited to 'src/libcore/str')
-rw-r--r--src/libcore/str/mod.rs1
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) {