Hide Box allocation in component::view
... we may be able to avoid it with generics in the future.
This commit is contained in:
parent
010b62b9ee
commit
f7792d89d6
2 changed files with 5 additions and 5 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue