Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arc<Self> can lead to unknown lifetimes on default methods #117

Closed
Denommus opened this issue Aug 6, 2020 · 1 comment
Closed

Arc<Self> can lead to unknown lifetimes on default methods #117

Denommus opened this issue Aug 6, 2020 · 1 comment

Comments

@Denommus
Copy link

Denommus commented Aug 6, 2020

Seems related to #11

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.
@Denommus
Copy link
Author

Denommus commented Aug 6, 2020

Sorry, this seems a duplicate of #108

@Denommus Denommus closed this as completed Aug 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant