]> Untitled Git - bdk/commit
feat(core): derive `Debug` for `BlockQueries` pre-master-rebase
author志宇 <hello@evanlinjin.me>
Thu, 10 Sep 2026 11:03:38 +0000 (11:03 +0000)
committer志宇 <hello@evanlinjin.me>
Fri, 11 Sep 2026 02:09:49 +0000 (02:09 +0000)
commitd9170d6abb86aec8287962840990f078071e5846
treedbf1a4372d79b87ea7007bf2e79fe1a54ff61cce
parent8275b687155ccac7b416ebb8b9e9135de697f461
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