Files
AxylumandCédric Legrand 23c97394fd error_utils: satisfy Clippy pedantic lints (#199)
## 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>
2026-11-11 11:16:25 -05:00
..
2026-04-13 17:47:06 -04:00