]> Untitled Git - bdk/commit
feat(core): derive `Debug` for `BlockQueries` pre-fold-backup
author志宇 <hello@evanlinjin.me>
Thu, 10 Sep 2026 11:03:38 +0000 (11:03 +0000)
committer志宇 <hello@evanlinjin.me>
Fri, 11 Sep 2026 02:00:25 +0000 (02:00 +0000)
commitbd7c962248d4a3a3f57fffc37ba28a77acaa1318
tree35240d06cbe8b59793ea6139c4ba9fcc2cbfca9f
parent6f73dc981ab7ebffee33b548857bf96f33ed455c
feat(core): derive `Debug` for `BlockQueries`

`BlockQueries` is half of `CanonicalTask::Output`, so without `Debug` the
task's own output tuple isn't `Debug` — `dbg!(chain.run_task(task))` and
`.unwrap()` on a `Result` in that position don't compile. Its neighbours
`BlockCandidateResolution` and `Canonical` already derive it (Rust API
guideline C-DEBUG).

Covered by formatting the output tuple in the existing `CanonicalTask`
test, so the derive can't be dropped without a test failing.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NND8BhEmYTYdLRv4dbUUro
crates/chain/src/canonical_task.rs
crates/core/src/block_queries.rs