remove typed stuff / just specify rsc if needed

This commit is contained in:
iris committed 2026-01-03 18:06:05 -05:00
1 parent 59901b6580
commit f2ac6f195f
14 files changed
+126 -164

No files matched your search

+2 -2
View File
@@ -2,13 +2,13 @@ use crate::{HasEvents, HasUi, Widget, WidgetRef};
pub struct EventCtx<'a, Rsc: HasEvents, Data> {
pub state: &'a mut Rsc::State,
pub data: &'a mut Data,
pub data: Data,
}
pub struct EventIdCtx<'a, Rsc: HasEvents, Data, W: ?Sized> {
pub widget: WidgetRef<W>,
pub state: &'a mut Rsc::State,
pub data: &'a mut Data,
pub data: Data,
}
impl<Rsc: HasEvents + HasUi, Data, W: Widget> EventIdCtx<'_, Rsc, Data, W> {