File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -136,12 +136,14 @@ struct IsWhitespace;
136
136
impl FnOnce < ( char , ) > for IsWhitespace {
137
137
type Output = bool ;
138
138
139
+ #[ inline]
139
140
extern "rust-call" fn call_once ( mut self , arg : ( char , ) ) -> bool {
140
141
self . call_mut ( arg)
141
142
}
142
143
}
143
144
144
145
impl FnMut < ( char , ) > for IsWhitespace {
146
+ #[ inline]
145
147
extern "rust-call" fn call_mut ( & mut self , arg : ( char , ) ) -> bool {
146
148
arg. 0 . is_whitespace ( )
147
149
}
@@ -153,12 +155,14 @@ struct IsNotEmpty;
153
155
impl < ' a , ' b > FnOnce < ( & ' a & ' b str , ) > for IsNotEmpty {
154
156
type Output = bool ;
155
157
158
+ #[ inline]
156
159
extern "rust-call" fn call_once ( mut self , arg : ( & & str , ) ) -> bool {
157
160
self . call_mut ( arg)
158
161
}
159
162
}
160
163
161
164
impl < ' a , ' b > FnMut < ( & ' a & ' b str , ) > for IsNotEmpty {
165
+ #[ inline]
162
166
extern "rust-call" fn call_mut ( & mut self , arg : ( & & str , ) ) -> bool {
163
167
!arg. 0 . is_empty ( )
164
168
}
You can’t perform that action at this time.
0 commit comments