--- a/rust/hedgewars-server/src/server/haskell.rs Wed May 20 23:41:25 2020 +0300
+++ b/rust/hedgewars-server/src/server/haskell.rs Sun May 24 06:10:25 2020 +0300
@@ -269,7 +269,7 @@
))(input)
}
-fn string_content(mut input: &[u8]) -> HaskellResult<String> {
+fn string_content(input: &[u8]) -> HaskellResult<String> {
map_res(
escaped_transform(is_not("\"\\"), '\\', string_escape),
|bytes| String::from_utf8(bytes).map_err(|_| ()),
@@ -331,7 +331,7 @@
many0(terminated(value, take_while(is_space))),
),
),
- |(name, mut fields)| HaskellValue::AnonStruct {
+ |(name, fields)| HaskellValue::AnonStruct {
name: name.clone(),
fields,
},