From 4d961c1049602e144dd6214718ceb2612f95ea18 Mon Sep 17 00:00:00 2001 From: cw Date: Fri, 25 Sep 2020 15:55:08 +0800 Subject: [PATCH] WIP: Fix mutability --- libconfig/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libconfig/src/lib.rs b/libconfig/src/lib.rs index 8075bdc..aeabcbe 100644 --- a/libconfig/src/lib.rs +++ b/libconfig/src/lib.rs @@ -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();