@@ -156,12 +156,12 @@ thread_local! {
156
156
method
157
157
} ;
158
158
159
- let add_method = new_binop( BinaryOperator :: Add ) ;
159
+ let add = new_binop( BinaryOperator :: Add ) ;
160
160
new_binop( BinaryOperator :: Sub ) ;
161
161
new_binop( BinaryOperator :: Mul ) ;
162
162
new_binop( BinaryOperator :: Div ) ;
163
- new_binop( BinaryOperator :: Equal ) ;
164
- new_binop( BinaryOperator :: NotEqual ) ;
163
+ let equal = new_binop( BinaryOperator :: Equal ) ;
164
+ let not_equal = new_binop( BinaryOperator :: NotEqual ) ;
165
165
new_binop( BinaryOperator :: Lt ) ;
166
166
new_binop( BinaryOperator :: Lte ) ;
167
167
new_binop( BinaryOperator :: Gt ) ;
@@ -175,8 +175,12 @@ thread_local! {
175
175
176
176
equality_ops!( m, Bool , Bool , bool ) ;
177
177
178
- let mut add_method = add_method. borrow_mut( ) ;
179
- add_method. register( binop!( String , String , String , |a, b| format!( "{}{}" , a, b) . into_boxed_str( ) ) ) ;
178
+ let mut add = add. borrow_mut( ) ;
179
+ let mut equal = equal. borrow_mut( ) ;
180
+ let mut not_equal = not_equal. borrow_mut( ) ;
181
+ add. register( binop!( String , String , String , |a, b| format!( "{}{}" , a, b) . into_boxed_str( ) ) ) ;
182
+ equal. register( binop!( String , String , Bool , |a, b| a == b) ) ;
183
+ not_equal. register( binop!( String , String , Bool , |a, b| a != b) ) ;
180
184
}
181
185
182
186
m
0 commit comments