about summary refs log tree commit diff
diff options
context:
space:
mode:
-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()
     }