read explicit lifetime to FromDsl
Some checks are pending
/ build (push) Waiting to run

This commit is contained in:
🪞👃🪞 2025-05-20 22:02:51 +03:00
parent 7c1cddc759
commit 455d6d00d5
14 changed files with 252 additions and 286 deletions

View file

@ -2,7 +2,7 @@ use crate::*;
use std::sync::{Mutex, Arc, RwLock};
/// Event source
pub trait Input: Send + Sync + Sized {
pub trait Input: Sized {
/// Type of input event
type Event;
/// Result of handling input
@ -36,7 +36,7 @@ pub trait Input: Send + Sync + Sized {
}
/// Handle input
pub trait Handle<E: Input>: Send + Sync {
pub trait Handle<E: Input> {
fn handle (&mut self, _input: &E) -> Perhaps<E::Handled> {
Ok(None)
}