Skip to content

Commit

Permalink
Fixing book example generation
Browse files Browse the repository at this point in the history
  • Loading branch information
ecton committed Sep 6, 2024
1 parent 634a4b7 commit a3c57d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/example.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ impl Example {
where
Test: FnOnce(&mut AnimationRecorder<'_, Rgba8>),
{
self.recorder.refresh().expect("error refreshing recorder");
let mut animation = self.recorder.record_animated_png(60);
let capture = std::env::var("CAPTURE").is_ok();
let errored = std::panic::catch_unwind(AssertUnwindSafe(|| test(&mut animation))).is_err();
Expand Down

0 comments on commit a3c57d5

Please sign in to comment.