--- a/rust/hedgewars-server/src/server/demo.rs Sun May 17 04:07:10 2020 +0300
+++ b/rust/hedgewars-server/src/server/demo.rs Mon May 18 21:17:46 2020 +0300
@@ -18,6 +18,7 @@
}
fn load(file: String) -> io::Result<Self> {
+ let value = super::haskell::parse(&[]);
Ok(unimplemented!())
}
@@ -60,8 +61,7 @@
const SUFFIX: &str = ".lua";
if arg.starts_with(PREFIX) && arg.ends_with(SUFFIX) {
let script = arg[PREFIX.len()..arg.len() - SUFFIX.len()].to_string();
- script.replace('_', " ");
- Ok(script)
+ Ok(script.replace('_', " "))
} else {
error("Script is not multiplayer")
}