Fix some pedantic lints

This commit is contained in:
Valentin Brandl
2023-06-13 10:22:37 +02:00
parent b07c732475
commit 361eacbe1d
8 changed files with 50 additions and 27 deletions

View File

@@ -18,6 +18,12 @@ pub struct Settings {
}
impl Settings {
/// Load the configuration from file and environment.
///
/// # Errors
///
/// * File cannot be read or parsed
/// * Environment variables cannot be parsed
pub fn load() -> Result<Self, ConfigError> {
Config::builder()
.add_source(File::with_name("hoc.toml").required(false))