aboutsummaryrefslogtreecommitdiffstats
path: root/mumlib/src
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2020-10-19 02:50:45 +0200
committerGustav Sörnäs <gustav@sornas.net>2020-10-19 02:50:45 +0200
commit26ccc76b3fcab00d21f88346d816fb83c2ae7563 (patch)
treee798443629a3f9dbca6cad1af4b6b35f30a4234b /mumlib/src
parent3e61f2d4a48b621c4cef820e24cd2515cbc1c919 (diff)
downloadmum-26ccc76b3fcab00d21f88346d816fb83c2ae7563.tar.gz
write config to file
Diffstat (limited to 'mumlib/src')
-rw-r--r--mumlib/src/config.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/mumlib/src/config.rs b/mumlib/src/config.rs
index d6550c1..e2ede02 100644
--- a/mumlib/src/config.rs
+++ b/mumlib/src/config.rs
@@ -18,8 +18,8 @@ pub struct Config {
impl Config {
pub fn write_default_cfg(&self) {
- debug!("{}", toml::to_string(&(TOMLConfig::from(self))).unwrap());
- //fs::write(, get_cfg_path())
+ debug!("{}", toml::to_string(&TOMLConfig::from(self)).unwrap());
+ fs::write(get_cfg_path(), toml::to_string(&TOMLConfig::from(self)).unwrap()).unwrap();
}
}