diff --git a/packages/tui/benches/update.rs b/packages/tui/benches/update.rs index 8f646405b..c1fa44875 100644 --- a/packages/tui/benches/update.rs +++ b/packages/tui/benches/update.rs @@ -65,7 +65,7 @@ fn Grid(cx: Scope) -> Element { let count = use_state(cx, || 0); let counts = use_ref(cx, || vec![0; size * size]); - let ctx: &TuiContext = cx.consume_context().unwrap(); + let ctx: TuiContext = cx.consume_context().unwrap(); if *count.get() + 1 >= (size * size) { ctx.quit(); } else {