fix compilation of test and benchmark
This commit is contained in:
parent
908d1d0c08
commit
a2a4eafd0e
2 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ pub fn criterion_benchmark(c: &mut Criterion) {
|
|||
c.bench_function("demo_app", |b| {
|
||||
b.iter(|| {
|
||||
let mut ui = ctx.begin_frame(raw_input.clone());
|
||||
demo_app.ui(&mut ui, "");
|
||||
demo_app.ui(&mut ui, &Default::default());
|
||||
ctx.end_frame()
|
||||
})
|
||||
});
|
||||
|
|
|
@ -95,7 +95,7 @@ pub fn text_egui_e2e() {
|
|||
const NUM_FRAMES: usize = 5;
|
||||
for _ in 0..NUM_FRAMES {
|
||||
let mut ui = ctx.begin_frame(raw_input.clone());
|
||||
demo_app.ui(&mut ui, "");
|
||||
demo_app.ui(&mut ui, &Default::default());
|
||||
let (_output, paint_jobs) = ctx.end_frame();
|
||||
assert!(!paint_jobs.is_empty());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue