From 26ccc76b3fcab00d21f88346d816fb83c2ae7563 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Mon, 19 Oct 2020 02:50:45 +0200 Subject: write config to file --- mumlib/src/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mumlib/src') 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(); } } -- cgit v1.2.1