You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
0 commit comments