xilem_html: Reduce generic type bounds for event handler types

This commit is contained in:
Jonas Platte 2023-07-23 12:57:07 +02:00
parent 9f961e9c16
commit 809b38e989
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67
1 changed files with 0 additions and 2 deletions

View File

@ -16,9 +16,7 @@ macro_rules! event {
pub struct $ty_name<T, A, V, F, OA> pub struct $ty_name<T, A, V, F, OA>
where where
V: crate::view::View<T, A>, V: crate::view::View<T, A>,
F: Fn(&mut T, &$crate::Event<$web_sys_ty, V::Element>) -> OA,
V::Element: 'static, V::Element: 'static,
OA: $crate::event::OptionalAction<A>,
{ {
inner: crate::OnEvent<$web_sys_ty, V, F>, inner: crate::OnEvent<$web_sys_ty, V, F>,
data: std::marker::PhantomData<T>, data: std::marker::PhantomData<T>,