Remove unused thiserror dependency from db crate (or land db::Error)
#8
Reference in New Issue
Block a user
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?
crates/db/Cargo.tomldeclaresthiserrorbut nothing indb/srcuses it — the repositories (audit,vocab,authority) all return rawsqlx::Error. It's been an unused dependency since the foundation (Plan 0).Either drop it, or land the
db::Errortype it was presumably reserved for (a typed error enum at the db boundary, wrappingsqlx::Error+ decode/not-found cases). Decide when the repositories need richer error semantics than rawsqlx::Error.Source: Plan 2 (vocab/authorities) final review — pre-existing, non-blocking.
Closing as obsolete:
thiserroris no longer unused in thedbcrate.crates/db/src/catalog.rsderivesthiserror::ErrorforFieldErrorandVisibilityError(added during the admin-CRUD work, after this issue was filed). The dependency is now legitimately used, so there's nothing to remove. If a unifieddb::Errorboundary type is wanted later, that's a separate, larger refactor.