@@ -318,25 +318,19 @@ mod query_tests {
318
318
319
319
let code = String :: from ( "return no_such_function(1);" ) ;
320
320
match aw_query:: query ( & code, & interval, & ds) {
321
- Ok ( ok) => panic ! ( format! ( "Expected QueryError, got {:?}" , ok) ) ,
321
+ Ok ( ok) => panic ! ( "Expected QueryError, got {:?}" , ok) ,
322
322
Err ( e) => match e {
323
323
QueryError :: VariableNotDefined ( qe) => assert_eq ! ( qe, "no_such_function" ) ,
324
- qe => panic ! ( format!(
325
- "Expected QueryError::VariableNotDefined, got {:?}" ,
326
- qe
327
- ) ) ,
324
+ qe => panic ! ( "Expected QueryError::VariableNotDefined, got {:?}" , qe) ,
328
325
} ,
329
326
}
330
327
331
328
let code = String :: from ( "invalid_type=1; return invalid_type(1);" ) ;
332
329
match aw_query:: query ( & code, & interval, & ds) {
333
- Ok ( ok) => panic ! ( format! ( "Expected QueryError, got {:?}" , ok) ) ,
330
+ Ok ( ok) => panic ! ( "Expected QueryError, got {:?}" , ok) ,
334
331
Err ( e) => match e {
335
332
QueryError :: InvalidType ( qe) => assert_eq ! ( qe, "invalid_type" ) ,
336
- qe => panic ! ( format!(
337
- "Expected QueryError::VariableNotDefined, got {:?}" ,
338
- qe
339
- ) ) ,
333
+ qe => panic ! ( "Expected QueryError::VariableNotDefined, got {:?}" , qe) ,
340
334
} ,
341
335
}
342
336
}
0 commit comments