mirror of https://github.com/linebender/xilem
xilem_html: Reduce generic type bounds for event handler types
This commit is contained in:
parent
9f961e9c16
commit
809b38e989
|
@ -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>,
|
||||||
|
|
Loading…
Reference in New Issue