1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-06-03 18:24:05 +02:00

more state handling

This commit is contained in:
Robin Appelman 2019-03-04 23:13:53 +01:00
commit 8376353542
8 changed files with 152 additions and 80 deletions

View file

@ -13,7 +13,7 @@ fn main() -> std::result::Result<(), Box<ParseError>> {
//dbg!(header);
//dbg!(state.deaths);
//std::thread::sleep(std::time::Duration::from_secs(5));
let json = serde_json::to_string(&state.borrow().rounds).unwrap_or("err".to_string());
let json = serde_json::to_string(&state).unwrap_or("err".to_string());
println!("{}", json);
Ok(())
}