From 109863c59a3864ab4640b5b966c161c6e3424818 Mon Sep 17 00:00:00 2001 From: Greg Johnston Date: Sun, 11 Dec 2022 17:42:15 -0500 Subject: [PATCH] Update SSR benchmark code to new APIs --- benchmarks/src/ssr.rs | 2 +- benchmarks/src/todomvc/leptos.rs | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/benchmarks/src/ssr.rs b/benchmarks/src/ssr.rs index 1f7fe4646..241c82c0e 100644 --- a/benchmarks/src/ssr.rs +++ b/benchmarks/src/ssr.rs @@ -7,7 +7,7 @@ fn leptos_ssr_bench(b: &mut Bencher) { _ = create_scope(create_runtime(), |cx| { #[component] - fn Counter(cx: Scope, initial: i32) -> View { + fn Counter(cx: Scope, initial: i32) -> impl IntoView { let (value, set_value) = create_signal(cx, initial); view! { cx, diff --git a/benchmarks/src/todomvc/leptos.rs b/benchmarks/src/todomvc/leptos.rs index 601b936ee..a185762e3 100644 --- a/benchmarks/src/todomvc/leptos.rs +++ b/benchmarks/src/todomvc/leptos.rs @@ -103,7 +103,7 @@ const ESCAPE_KEY: u32 = 27; const ENTER_KEY: u32 = 13; #[component] -pub fn TodoMVC(cx: Scope, todos: Todos) -> View { +pub fn TodoMVC(cx: Scope, todos: Todos) -> impl IntoView { let mut next_id = todos .0 .iter() @@ -186,9 +186,11 @@ pub fn TodoMVC(cx: Scope, todos: Todos) -> View { />