WIP: Fix mutability

This commit is contained in:
cw 2020-09-25 15:55:08 +08:00
parent 9066a58d00
commit 4d961c1049
1 changed files with 2 additions and 2 deletions

View File

@ -230,8 +230,8 @@ impl Config {
Ok(())
}
pub fn write_str<'b>(&mut self, key: &str, data: &str) -> Result<'b, ()>{
let call_remove_config_key_bin = false;
let call_remove_config_txt = false;
let mut call_remove_config_key_bin = false;
let mut call_remove_config_txt = false;
if let Some(fs) = &self.fs {
let root_dir = fs.root_dir();