remove now unused `IntoEventHandler` trait
This commit is contained in:
parent
44436da495
commit
b1d7f80dad
|
@ -24,12 +24,6 @@ pub trait EventHandler<T: OutputType, E> {
|
||||||
fn render(&self) -> Option<String>;
|
fn render(&self) -> Option<String>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Trait for building event handlers from other types.
|
|
||||||
pub trait IntoEventHandler<T: OutputType, E> {
|
|
||||||
/// Construct an event handler from an instance of the source type.
|
|
||||||
fn into_event_handler(self) -> Box<dyn EventHandler<T, E>>;
|
|
||||||
}
|
|
||||||
|
|
||||||
macro_rules! declare_events_struct {
|
macro_rules! declare_events_struct {
|
||||||
($($name:ident,)*) => {
|
($($name:ident,)*) => {
|
||||||
pub struct Events<T> {
|
pub struct Events<T> {
|
||||||
|
|
Loading…
Reference in New Issue