Skip to content

Commit

Permalink
Fix last clippy.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsuereth committed Dec 16, 2024
1 parent 17eafc1 commit 3119805
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions crates/weaver_forge/src/jq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,7 @@ mod tests {
let input = json!({});
let values = BTreeMap::new();
let error = execute_jq(&input, "(", &values)
.err()
.expect("Should have failed to lex");
.expect_err("Should have failed to lex");
let msg = format!("{error}");
assert!(
msg.contains("expected closing parenthesis"),
Expand All @@ -200,8 +199,7 @@ mod tests {
let input = json!({});
let values = BTreeMap::new();
let error = execute_jq(&input, "if false then .", &values)
.err()
.expect("Should have failed to parse");
.expect_err("Should have failed to parse");
let msg = format!("{error}");
assert!(
msg.contains("expected else or end"),
Expand All @@ -214,8 +212,7 @@ mod tests {
let input = json!({});
let values = BTreeMap::new();
let error = execute_jq(&input, ".x | de", &values)
.err()
.expect("Should have failed to parse");
.expect_err("Should have failed to parse");
let msg = format!("{error}");
assert!(
msg.contains("undefined filter"),
Expand Down

0 comments on commit 3119805

Please sign in to comment.