error[E0310]: the parameter type `AsyncTrait` may not live long enough
--> jcpc/src/interface.rs:82:13
|
15 | / #[async_trait]
16 | | pub trait JoyCon: Sync + Send {
| |_ help: consider adding an explicit lifetime bound...: `AsyncTrait: 'static +`
...
82 | tokio::spawn(async move {
| ^^^^^^^^^^^^ ...so that the type `impl std::future::Future` will meet its required lifetime bounds
error: aborting due to previous error
For more information about this error, try `rustc --explain E0310`.
error: could not compile `jcpc`.
To learn more, run the command again with --verbose.
Seems related to #11