wip: fix implicit static

This commit is contained in:
🪞👃🪞 2024-09-09 17:49:50 +03:00
parent eeb323b742
commit 49d2055147
6 changed files with 27 additions and 27 deletions

View file

@ -1,11 +1,7 @@
use jack::*;
use crate::*;
submod! {
device
event
ports
}
submod! { device event ports }
/// A UI component that may be associated with a JACK client by the `Jack` factory.
pub trait Device<E: Engine>: Component<E> + Process {
@ -16,7 +12,7 @@ pub trait Device<E: Engine>: Component<E> + Process {
}
/// All things that implement the required traits can be treated as `Device`.
impl<E: Engine, W: Widget<Engine = E> + Process> Device<E> for W {}
impl<E: Engine, W: Component<E> + Process> Device<E> for W {}
//impl<'a, E: Engine> Render<E> for Box<dyn Device<E> + 'a> {
//fn render (&self, to: &mut E) -> Perhaps<E::Rendered> {