domain: ConfirmationDetails is a dead empty struct plumbed through every construction site #67
Labels
No labels
kind
bug
kind
enhancement
wayfinder
grilling
wayfinder
map
wayfinder
prototype
wayfinder
research
wayfinder
task
workflow
needs-info
workflow
needs-triage
workflow
ready-for-agent
workflow
ready-for-human
workflow
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
rosa/vernier#67
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found during a code review of the
domaincrate.Location:
crates/domain/src/models/user.rs:386(struct),user.rs:505(getter)Type: Cleanup — dead code
Problem
ConfirmationDetailsis an empty unit struct stored as a field onConfirmation, plumbed throughConfirmation::newby every constructor (infra, mocks, tests), with adetails()getter that has zero callers. The Postgres row mapping constructsConfirmationDetails {}from thin air, so it carries no serialized meaning.Cost
Every construction site must supply a value carrying no information, and the dead getter implies a meaning that is not there.
Suggested fix
Delete the struct, field, getter, and constructor parameter; reintroduce a real details type only when a confirmation action needs a payload.