mehcode / config-rs

⚙️ Layered configuration system for Rust applications (with strong support for 12-factor applications).
Apache License 2.0
2.43k stars 206 forks source link

deserialize: strings: Introduce Unreachable type #490

Closed ijackson closed 5 months ago

ijackson commented 8 months ago

This allows us to remove a lot of code that contains calls to unreachable! (ie, a runtime panic) with code that demonstrates, in a way that's checked by the compiler, that the call cannot happen.

matthiasbeyer commented 5 months ago

I rebased this and will merge if CI is green.