mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-03 10:14:06 +02:00
clippy fixes
This commit is contained in:
parent
b9d311f16f
commit
f7190dca0f
13 changed files with 23 additions and 25 deletions
|
|
@ -15,7 +15,7 @@ use tf_demo_parser::{Demo, DemoParser};
|
|||
#[test_case("emptysaytext.dem")]
|
||||
#[test_case("protocol23.dem")]
|
||||
fn snapshot_test(input_file: &str) {
|
||||
let file = fs::read(format!("test_data/{}", input_file)).expect("Unable to read file");
|
||||
let file = fs::read(format!("test_data/{input_file}")).expect("Unable to read file");
|
||||
let demo = Demo::new(&file);
|
||||
let (_, state) = DemoParser::new(demo.get_stream()).parse().unwrap();
|
||||
|
||||
|
|
@ -28,7 +28,7 @@ fn snapshot_test(input_file: &str) {
|
|||
#[test_case("small.dem")]
|
||||
#[test_case("gully.dem")]
|
||||
fn game_state_test(input_file: &str) {
|
||||
let file = fs::read(format!("test_data/{}", input_file)).expect("Unable to read file");
|
||||
let file = fs::read(format!("test_data/{input_file}")).expect("Unable to read file");
|
||||
let demo = Demo::new(&file);
|
||||
let (_, mut state) = DemoParser::new_with_analyser(demo.get_stream(), GameStateAnalyser::new())
|
||||
.parse()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue