rust-cli / confy

🛋 Zero-boilerplate configuration management in Rust
Other
907 stars 61 forks source link

Error when configuration is missing #29

Closed smnz closed 4 years ago

smnz commented 4 years ago

Since 0.4.0 it seems an old error has come back whereby if a configuration file is missing a field it gives an Error during load_config.

matthiasbeyer commented 4 years ago

You might want to make your field an Option<T> if it is optional in your config?

smnz commented 4 years ago

Ah. Apologies.

matthiasbeyer commented 4 years ago

No need to apologize, we're here to help! :heart: