Skip to content

Commit 20401b1

Browse files
authored
fix(scripted_tool): fix rustfmt formatting for long expect() lines
2 parents 6347731 + 2e5c158 commit 20401b1

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

crates/bashkit/src/scripted_tool/execute.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,9 @@ mod tests {
426426
let schema = serde_json::json!({});
427427
let result = parse_flags(&["42".into()], &schema);
428428
assert!(result.is_err());
429-
assert!(result.expect_err("should reject positional").contains("expected --flag"));
429+
assert!(result
430+
.expect_err("should reject positional")
431+
.contains("expected --flag"));
430432
}
431433

432434
#[test]

crates/bashkit/src/scripted_tool/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,8 @@ mod tests {
660660
})
661661
.await;
662662
assert_eq!(resp.exit_code, 0);
663-
let parsed: serde_json::Value = serde_json::from_str(resp.stdout.trim()).expect("stdout should be valid JSON");
663+
let parsed: serde_json::Value =
664+
serde_json::from_str(resp.stdout.trim()).expect("stdout should be valid JSON");
664665
assert_eq!(parsed["name"], "Alice");
665666
assert_eq!(parsed["count"], "3"); // string, not int — no schema
666667
}

0 commit comments

Comments
 (0)