From 96ac028918baa1094374e823a2464016f7f20479 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Sat, 26 Dec 2020 22:33:10 +0100 Subject: add todos --- mumlib/src/config.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mumlib/src/config.rs') diff --git a/mumlib/src/config.rs b/mumlib/src/config.rs index 0a43253..b0ce3f7 100644 --- a/mumlib/src/config.rs +++ b/mumlib/src/config.rs @@ -41,7 +41,7 @@ impl Config { fs::write( path, - toml::to_string(&TOMLConfig::from(self.clone())).unwrap(), + toml::to_string(&TOMLConfig::from(self.clone())).unwrap(), //TODO handle panic ) } } @@ -162,7 +162,7 @@ impl From for TOMLConfig { config .servers .into_iter() - .map(|s| Value::try_from::(s).unwrap()) + .map(|s| Value::try_from::(s).unwrap()) //TODO handle panic .collect(), ), } @@ -175,7 +175,7 @@ pub fn read_default_cfg() -> Config { Ok(f) => f, Err(_) => return Config::default(), }) - .expect("invalid TOML in config file"), //TODO + .expect("invalid TOML in config file"), //TODO handle panic ) - .expect("invalid config in TOML") //TODO + .expect("invalid config in TOML") //TODO handle panic } -- cgit v1.2.1