File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -136,12 +136,14 @@ struct IsWhitespace;
136136impl FnOnce < ( char , ) > for IsWhitespace {
137137 type Output = bool ;
138138
139+ #[ inline]
139140 extern "rust-call" fn call_once ( mut self , arg : ( char , ) ) -> bool {
140141 self . call_mut ( arg)
141142 }
142143}
143144
144145impl FnMut < ( char , ) > for IsWhitespace {
146+ #[ inline]
145147 extern "rust-call" fn call_mut ( & mut self , arg : ( char , ) ) -> bool {
146148 arg. 0 . is_whitespace ( )
147149 }
@@ -153,12 +155,14 @@ struct IsNotEmpty;
153155impl < ' a , ' b > FnOnce < ( & ' a & ' b str , ) > for IsNotEmpty {
154156 type Output = bool ;
155157
158+ #[ inline]
156159 extern "rust-call" fn call_once ( mut self , arg : ( & & str , ) ) -> bool {
157160 self . call_mut ( arg)
158161 }
159162}
160163
161164impl < ' a , ' b > FnMut < ( & ' a & ' b str , ) > for IsNotEmpty {
165+ #[ inline]
162166 extern "rust-call" fn call_mut ( & mut self , arg : ( & & str , ) ) -> bool {
163167 !arg. 0 . is_empty ( )
164168 }
You can’t perform that action at this time.
0 commit comments