mirror of
https://seed.radicle.dev/rad:z39mP9rQAaGmERfUMPULfPUi473tY.git
synced 2026-11-29 14:30:31 +08:00
lib: Use associated types in views
This commit is contained in:
@@ -126,7 +126,10 @@ impl<S, A> TextField<S, A> {
|
||||
}
|
||||
}
|
||||
|
||||
impl<S, A> View<S, A> for TextField<S, A> {
|
||||
impl<S, A> View for TextField<S, A> {
|
||||
type Action = A;
|
||||
type State = S;
|
||||
|
||||
fn new(_state: &S, action_tx: UnboundedSender<A>) -> Self {
|
||||
Self {
|
||||
base: BaseView {
|
||||
@@ -186,7 +189,7 @@ impl<S, A> View<S, A> for TextField<S, A> {
|
||||
}
|
||||
}
|
||||
|
||||
impl<B, S, A> Widget<B, S, A> for TextField<S, A>
|
||||
impl<B, S, A> Widget<B> for TextField<S, A>
|
||||
where
|
||||
B: Backend,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user