Skip to content

Commit

Permalink
Update test-fixture/src/sim/mod.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Thomson <[email protected]>
Signed-off-by: Lars Eggert <[email protected]>
  • Loading branch information
larseggert and martinthomson authored Oct 11, 2024
1 parent eee8009 commit 5ff3474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test-fixture/src/sim/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ impl Simulator {
} else {
let seed_str = sim.rng.borrow().seed_str();
let path = format!("{dir}/{seed_str}");
if write(&path, seed_str).is_err() {
if File::create(&path).is_err() {
qerror!("Failed to write seed to {path}");
}
}
Expand Down

0 comments on commit 5ff3474

Please sign in to comment.