diff --git a/src/client/mudlet.rs b/src/client/mudlet.rs index 4ff492b..e71bc77 100644 --- a/src/client/mudlet.rs +++ b/src/client/mudlet.rs @@ -76,8 +76,8 @@ pub fn parse_log(raw: &Vec) -> Result { return Err("text_chunk size too small".into()); } - let text: String = String::from_utf8_lossy(&text_chunk).into(); - let text: String = convert_escaped(&text)?; + let mut text: String = String::from_utf8_lossy(&text_chunk).into(); + text = convert_escaped(&text)?; for line in text.lines() { let mut map: Map = Map::new();