Skip to content

Commit 75fdcc9

Browse files
chore: Fix compilation warnings
1 parent d81c461 commit 75fdcc9

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

aw-models/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ extern crate log;
33

44
// TODO: Move me to an appropriate place
55
#[cfg(test)] // Only macro use for tests
6-
#[macro_use]
76
macro_rules! json_map {
87
{ $( $key:literal : $value:expr),* } => {{
98
use serde_json::{Value};

aw-query/tests/query.rs

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -318,25 +318,19 @@ mod query_tests {
318318

319319
let code = String::from("return no_such_function(1);");
320320
match aw_query::query(&code, &interval, &ds) {
321-
Ok(ok) => panic!(format!("Expected QueryError, got {:?}", ok)),
321+
Ok(ok) => panic!("Expected QueryError, got {:?}", ok),
322322
Err(e) => match e {
323323
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),
328325
},
329326
}
330327

331328
let code = String::from("invalid_type=1; return invalid_type(1);");
332329
match aw_query::query(&code, &interval, &ds) {
333-
Ok(ok) => panic!(format!("Expected QueryError, got {:?}", ok)),
330+
Ok(ok) => panic!("Expected QueryError, got {:?}", ok),
334331
Err(e) => match e {
335332
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),
340334
},
341335
}
342336
}

0 commit comments

Comments
 (0)