Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
atlv24 committed Dec 2, 2024
1 parent 632c478 commit 51b3d3c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions player/tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,11 @@ impl Test<'_> {
wgt::Backend::Gl => "Gl",
_ => unreachable!(),
};
let string = read_to_string(path.clone())
let string = read_to_string(&path)
.unwrap()
.replace("Empty", backend_name);
ron::de::from_str(&string).expect(format!("{path:?}").as_str())
ron::de::from_str(&string)
.unwrap_or_else(|e| panic!("{path:?}:{} {}", e.position.line, e.code))
}

fn run(
Expand Down

0 comments on commit 51b3d3c

Please sign in to comment.