diff --git a/src/config.rs b/src/config.rs index a562ef0..f9b71ef 100644 --- a/src/config.rs +++ b/src/config.rs @@ -72,7 +72,7 @@ impl Config { fn write>(&self, path: P) -> Result<(), String> { let data = toml::to_string_pretty(&self) .map_err(|e| format!("can't serialize config: {:?}", e))?; - fs::write(path, &data).map_err(|e| format!("can't write config: {:?}", e)) + fs::write(path, data).map_err(|e| format!("can't write config: {:?}", e)) } fn file_location() -> Result { let res = env::current_exe()