diff options
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"); |
