aboutsummaryrefslogtreecommitdiffstats
path: root/mumlib/src
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2020-12-26 22:33:10 +0100
committerGustav Sörnäs <gustav@sornas.net>2021-03-30 15:25:55 +0200
commit96ac028918baa1094374e823a2464016f7f20479 (patch)
tree91c8a87db33033dbd64d3d5a9ae4343488213085 /mumlib/src
parent795e46c98616801c678bd0a403b08cb0fcd5ee43 (diff)
downloadmum-96ac028918baa1094374e823a2464016f7f20479.tar.gz
add todos
Diffstat (limited to 'mumlib/src')
-rw-r--r--mumlib/src/command.rs1
-rw-r--r--mumlib/src/config.rs8
2 files changed, 5 insertions, 4 deletions
diff --git a/mumlib/src/command.rs b/mumlib/src/command.rs
index d2e8477..fc08ddf 100644
--- a/mumlib/src/command.rs
+++ b/mumlib/src/command.rs
@@ -31,6 +31,7 @@ pub enum Command {
UserVolumeSet(String, f32),
}
+//TODO none-response
#[derive(Debug, Deserialize, Serialize)]
pub enum CommandResponse {
ChannelList {
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<Config> for TOMLConfig {
config
.servers
.into_iter()
- .map(|s| Value::try_from::<ServerConfig>(s).unwrap())
+ .map(|s| Value::try_from::<ServerConfig>(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
}