Merge pull request #684 from Demonthos/fix-tui-benchmark

fix tui benchmark
This commit is contained in:
Jon Kelley 2022-12-28 11:50:41 -05:00 committed by GitHub
commit 92a2db9cc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,7 +65,7 @@ fn Grid(cx: Scope<GridProps>) -> 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 {