about summary refs log tree commit diff
path: root/src/libstd_unicode
diff options
context:
space:
mode:
authorUlrik Sverdrup <bluss@users.noreply.github.com>2017-04-30 21:24:47 +0200
committerUlrik Sverdrup <bluss@users.noreply.github.com>2017-04-30 21:24:47 +0200
commit41aeb9d4ec26c4b6fb118483d2d1375e04b2c62f (patch)
tree20992dc6249d7212509f3ed8fa0d305b452565ef /src/libstd_unicode
parentf41ecef6d52200743b3672346a59fc1e2068e9e8 (diff)
downloadrust-41aeb9d4ec26c4b6fb118483d2d1375e04b2c62f.tar.gz
rust-41aeb9d4ec26c4b6fb118483d2d1375e04b2c62f.zip
std_unicode: Use #[inline] on the split_whitespace predicates
Diffstat (limited to 'src/libstd_unicode')
-rw-r--r--src/libstd_unicode/u_str.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstd_unicode/u_str.rs b/src/libstd_unicode/u_str.rs
index e138e71c9c1..1454168d2d5 100644
--- a/src/libstd_unicode/u_str.rs
+++ b/src/libstd_unicode/u_str.rs
@@ -136,12 +136,14 @@ struct IsWhitespace;
 impl FnOnce<(char, )> for IsWhitespace {
     type Output = bool;
 
+    #[inline]
     extern "rust-call" fn call_once(mut self, arg: (char, )) -> bool {
         self.call_mut(arg)
     }
 }
 
 impl FnMut<(char, )> for IsWhitespace {
+    #[inline]
     extern "rust-call" fn call_mut(&mut self, arg: (char, )) -> bool {
         arg.0.is_whitespace()
     }
@@ -153,12 +155,14 @@ struct IsNotEmpty;
 impl<'a, 'b> FnOnce<(&'a &'b str, )> for IsNotEmpty {
     type Output = bool;
 
+    #[inline]
     extern "rust-call" fn call_once(mut self, arg: (&&str, )) -> bool {
         self.call_mut(arg)
     }
 }
 
 impl<'a, 'b> FnMut<(&'a &'b str, )> for IsNotEmpty {
+    #[inline]
     extern "rust-call" fn call_mut(&mut self, arg: (&&str, )) -> bool {
         !arg.0.is_empty()
     }