diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2021-06-06 23:26:24 +0200 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2021-06-06 23:26:24 +0200 |
| commit | be76c2aa51733a0cf495e92659fbcbe527f41149 (patch) | |
| tree | 617fb1caa999c076a45233b4bedea6a78192db25 /mumlib/src/config.rs | |
| parent | 7fc5a1a36404ee4cbc09d20c955e6edd3d2ac523 (diff) | |
| download | mum-be76c2aa51733a0cf495e92659fbcbe527f41149.tar.gz | |
cargo fmt
Diffstat (limited to 'mumlib/src/config.rs')
| -rw-r--r-- | mumlib/src/config.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mumlib/src/config.rs b/mumlib/src/config.rs index 587d8d0..1bd3784 100644 --- a/mumlib/src/config.rs +++ b/mumlib/src/config.rs @@ -85,7 +85,7 @@ pub fn default_cfg_path() -> PathBuf { p } //TODO This isn't cross platform. - None => PathBuf::from("/etc/mumdrc") + None => PathBuf::from("/etc/mumdrc"), } } @@ -134,7 +134,7 @@ pub fn read_cfg(path: &Path) -> Result<Config, ConfigError> { Ok(s) => { let toml_config: TOMLConfig = toml::from_str(&s)?; Ok(Config::try_from(toml_config)?) - }, + } Err(e) => { if matches!(e.kind(), std::io::ErrorKind::NotFound) && !path.exists() { warn!("Config file not found"); |
