mirror of
https://github.com/danbulant/cushy
synced 2026-07-06 19:50:40 +00:00
Fixing book example generation
This commit is contained in:
parent
634a4b7af8
commit
a3c57d50d3
1 changed files with 1 additions and 0 deletions
|
|
@ -135,6 +135,7 @@ impl Example {
|
||||||
where
|
where
|
||||||
Test: FnOnce(&mut AnimationRecorder<'_, Rgba8>),
|
Test: FnOnce(&mut AnimationRecorder<'_, Rgba8>),
|
||||||
{
|
{
|
||||||
|
self.recorder.refresh().expect("error refreshing recorder");
|
||||||
let mut animation = self.recorder.record_animated_png(60);
|
let mut animation = self.recorder.record_animated_png(60);
|
||||||
let capture = std::env::var("CAPTURE").is_ok();
|
let capture = std::env::var("CAPTURE").is_ok();
|
||||||
let errored = std::panic::catch_unwind(AssertUnwindSafe(|| test(&mut animation))).is_err();
|
let errored = std::panic::catch_unwind(AssertUnwindSafe(|| test(&mut animation))).is_err();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue