From be76c2aa51733a0cf495e92659fbcbe527f41149 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Sun, 6 Jun 2021 23:26:24 +0200 Subject: cargo fmt --- mumlib/src/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mumlib/src/config.rs') 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 { 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"); -- cgit v1.2.1