From f7792d89d64c39cdde9da030bec80fb6f461a0e3 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Mon, 8 Nov 2021 15:32:58 +0700 Subject: Hide `Box` allocation in `component::view` ... we may be able to avoid it with generics in the future. --- examples/component/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/component/src/main.rs b/examples/component/src/main.rs index 58d3f354..39335cf1 100644 --- a/examples/component/src/main.rs +++ b/examples/component/src/main.rs @@ -174,7 +174,7 @@ mod numeric_input { Renderer: text::Renderer + 'a, { fn from(numeric_input: NumericInput<'a, Message>) -> Self { - component::view(Box::new(numeric_input)) + component::view(numeric_input) } } } -- cgit