get rid of a let by using a mut

master
rascul 2 years ago
parent 1d6ddaa6c4
commit 8b23140f8e

@ -76,8 +76,8 @@ pub fn parse_log(raw: &Vec<u8>) -> Result<Value> {
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<String, Value> = Map::new();

Loading…
Cancel
Save