mirror of
https://github.com/storytold/artcraft-services.git
synced 2026-11-20 09:23:31 +01:00
## Summary - inline the two format arguments in `try_error_name` and its test error formatter - remove an unread field from a test-only error variant while preserving its asserted title - apply the repository two-space rustfmt rules No production API or behavior changes. ## Verification - `SQLX_OFFLINE=true cargo clippy -p error_utils --all-targets -- -W clippy::pedantic -D warnings` - `SQLX_OFFLINE=true cargo test -p error_utils` — 13 tests passed - `cargo fmt -p error_utils -- --check` - Independent read-only review: no findings <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Refactor** * Simplified internal error formatting and initialization. Error-name extraction behavior remains unchanged. * **Tests** * Reformatted test assertions and adjusted test-only formatting; test expectations are unchanged. * **User Impact** * No changes to user-visible behavior. These updates do not alter how errors are named or extracted. No new features, removed capabilities, or changes to the public interface are included. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Cédric Legrand <cedric@legrand-tech.fr>