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

Strange behaviour with BoxFuture #16

Open
hobofan opened this issue Jan 20, 2020 · 1 comment
Open

Strange behaviour with BoxFuture #16

hobofan opened this issue Jan 20, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@hobofan
Copy link
Owner

hobofan commented Jan 20, 2020

Not sure what is going on here. Might by related to type aliases?

Error output:

error[E0308]: mismatched types
  --> rlay-client/src/backend/mod.rs:86:17
   |
86 | #[derive(Clone, Delegate)]
   |                 ^^^^^^^^ expected struct `std::pin::Pin`, found opaque type
   |
   = note: expected type `std::pin::Pin<std::boxed::Box<dyn failure::core::future::future::Future<Output = std::result::Result<std::vec::Vec<rlay_ontology::ontology::Entity>, failure::Error>> + std::marker::Send>>`
              found type `impl failure::core::future::future::Future`
   = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error: aborting due to previous error

Commit to reproduce: https://github.com/rlay-project/rlay-client/tree/0206c120b137cdc94bebaa6c751b8f663cbc9158

@hobofan hobofan added the bug Something isn't working label Jan 20, 2020
@hobofan
Copy link
Owner Author

hobofan commented Jan 21, 2020

This can be traced down to the get_entities function of the trait. Not sure why though, as there doesn't seem to be any noticeable difference to any of the other functions, which work without problems. 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant