summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-11-08 15:32:58 +0700
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-11-29 15:04:13 +0700
commitf7792d89d64c39cdde9da030bec80fb6f461a0e3 (patch)
tree3b41c97fdfb1c832789a2034f5be7a8afa2ac801 /examples
parent010b62b9ee20b03053ab538a5910795bc0618378 (diff)
downloadiced-f7792d89d64c39cdde9da030bec80fb6f461a0e3.tar.gz
iced-f7792d89d64c39cdde9da030bec80fb6f461a0e3.tar.bz2
iced-f7792d89d64c39cdde9da030bec80fb6f461a0e3.zip
Hide `Box` allocation in `component::view`
... we may be able to avoid it with generics in the future.
Diffstat (limited to 'examples')
-rw-r--r--examples/component/src/main.rs2
1 files changed, 1 insertions, 1 deletions
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)
}
}
}