From eb073b53c694337cdb1a2ec9ac9c3d1ee871d62b Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Mon, 9 Nov 2026 08:58:16 -0700 Subject: [PATCH] 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 --- crates/ledger-core/tests/bookspec/check.rs | 5 ++++- crates/ledger-core/tests/bookspec/queries/parties.rs | 6 ++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/crates/ledger-core/tests/bookspec/check.rs b/crates/ledger-core/tests/bookspec/check.rs index f82063a9..1c6fd669 100644 --- a/crates/ledger-core/tests/bookspec/check.rs +++ b/crates/ledger-core/tests/bookspec/check.rs @@ -95,7 +95,10 @@ pub(crate) fn check(b: &Books<'_>, x: &Expect) -> Option<&'static str> { ex.id ); 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()) { Err(r) => assert_eq!(&r.reason, want, "{}: {q} refused ({})", ex.id, r.reason), diff --git a/crates/ledger-core/tests/bookspec/queries/parties.rs b/crates/ledger-core/tests/bookspec/queries/parties.rs index fb0443c0..9fcf80c1 100644 --- a/crates/ledger-core/tests/bookspec/queries/parties.rs +++ b/crates/ledger-core/tests/bookspec/queries/parties.rs @@ -528,9 +528,11 @@ pub(crate) fn check_return_tin(b: &Books<'_>, x: &Expect) { .return_tin(party) .unwrap_or_else(|r| panic!("{}: return_tin refused ({})", ex.id, r.reason)); assert_eq!( - got, x.figures(&ex.id)["tin"], + got, + x.figures(&ex.id)["tin"], "{}: {:?}'s return TIN", - ex.id, x.party + ex.id, + x.party ); }