• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rust-cli / config-rs / 18139561369

30 Sep 2025 06:21PM UTC coverage: 64.846% (+0.07%) from 64.774%
18139561369

push

github

web-flow
feat: Improve errors from try_deserialize (#695)

Enables user code to handle missing and invalid fields after calling
try_deserialize instead of having to match and search in the string
returned in `ConfigError::Message`.

Personally I deem the `String::leak` call safe for my usage, as I would
expect to terminate my program on configuration errors anyhow, however
we could certainly also change the `expected` field to be a `Cow<str>`
or similar to handle both `&'static str` and `String` elegantly.

Part of #532

3 of 3 new or added lines in 1 file covered. (100.0%)

1 existing line in 1 file now uncovered.

950 of 1465 relevant lines covered (64.85%)

3.71 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

72.09
/src/error.rs


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc