style(core): rustfmt the refused-input adapter additions
The X-H1d adapter commits left two expressions the workspace's rustfmt reflows: the `matches!` in `check.rs` and the `assert_eq!` arguments in `queries/parties.rs`. No behavior changes; `cargo fmt --all -- --check` now passes. Co-Authored-By: DeepSeek V4.1 Flash <noreply@opencode.ai>
This commit is contained in:
1 parent
ad55ede8e4
commit
eb073b53c6
2 files changed
+8
-3
No files matched your search
@@ -95,7 +95,10 @@ pub(crate) fn check(b: &Books<'_>, x: &Expect) -> Option<&'static str> {
|
|||||||
ex.id
|
ex.id
|
||||||
);
|
);
|
||||||
if let Some(want) = &x.refused
|
if let Some(want) = &x.refused
|
||||||
&& matches!(q, "vendor_1099" | "iif_lines" | "iif_changes" | "return_tin")
|
&& matches!(
|
||||||
|
q,
|
||||||
|
"vendor_1099" | "iif_lines" | "iif_changes" | "return_tin"
|
||||||
|
)
|
||||||
{
|
{
|
||||||
match b.answer(&x.query()) {
|
match b.answer(&x.query()) {
|
||||||
Err(r) => assert_eq!(&r.reason, want, "{}: {q} refused ({})", ex.id, r.reason),
|
Err(r) => assert_eq!(&r.reason, want, "{}: {q} refused ({})", ex.id, r.reason),
|
||||||
|
|||||||
@@ -528,9 +528,11 @@ pub(crate) fn check_return_tin(b: &Books<'_>, x: &Expect) {
|
|||||||
.return_tin(party)
|
.return_tin(party)
|
||||||
.unwrap_or_else(|r| panic!("{}: return_tin refused ({})", ex.id, r.reason));
|
.unwrap_or_else(|r| panic!("{}: return_tin refused ({})", ex.id, r.reason));
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
got, x.figures(&ex.id)["tin"],
|
got,
|
||||||
|
x.figures(&ex.id)["tin"],
|
||||||
"{}: {:?}'s return TIN",
|
"{}: {:?}'s return TIN",
|
||||||
ex.id, x.party
|
ex.id,
|
||||||
|
x.party
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user