diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2020-10-19 02:50:45 +0200 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2020-10-19 02:50:45 +0200 |
| commit | 26ccc76b3fcab00d21f88346d816fb83c2ae7563 (patch) | |
| tree | e798443629a3f9dbca6cad1af4b6b35f30a4234b /mumlib/src/config.rs | |
| parent | 3e61f2d4a48b621c4cef820e24cd2515cbc1c919 (diff) | |
| download | mum-26ccc76b3fcab00d21f88346d816fb83c2ae7563.tar.gz | |
write config to file
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 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(); } } |
