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

[Bug] Failed to build due to mismatched types of flume #743

Open
YuanYuYuan opened this issue Oct 8, 2024 · 0 comments
Open

[Bug] Failed to build due to mismatched types of flume #743

YuanYuYuan opened this issue Oct 8, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@YuanYuYuan
Copy link
Contributor

Describe the bug

We need to align with the recent change on the flume eclipse-zenoh/zenoh@3740564

error[E0308]: mismatched types
  --> src/closures/response_channel.rs:86:50
   |
86 |     handler.as_rust_type_mut_uninit().write(Some(h));
   |                                             ---- ^ expected `Receiver<Reply>`, found `FifoChannelHandler<_>`
   |                                             |
   |                                             arguments to this enum variant are incorrect
   |
   = note: expected struct `flume::Receiver<Reply>`
              found struct `FifoChannelHandler<_>`
help: the type constructed contains `FifoChannelHandler<_>` due to the type of the argument passed
  --> src/closures/response_channel.rs:86:45
   |
86 |     handler.as_rust_type_mut_uninit().write(Some(h));
   |                                             ^^^^^-^
   |                                                  |
   |                                                  this argument influences the type of `Some`
note: tuple variant defined here
  --> /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/option.rs:577:5

error[E0308]: mismatched types
  --> src/closures/query_channel.rs:86:50
   |
86 |     handler.as_rust_type_mut_uninit().write(Some(h));
   |                                             ---- ^ expected `Receiver<Query>`, found `FifoChannelHandler<_>`
   |                                             |
   |                                             arguments to this enum variant are incorrect
   |
   = note: expected struct `flume::Receiver<Query>`
              found struct `FifoChannelHandler<_>`
help: the type constructed contains `FifoChannelHandler<_>` due to the type of the argument passed
  --> src/closures/query_channel.rs:86:45
   |
86 |     handler.as_rust_type_mut_uninit().write(Some(h));
   |                                             ^^^^^-^
   |                                                  |
   |                                                  this argument influences the type of `Some`
note: tuple variant defined here
  --> /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/option.rs:577:5

error[E0308]: mismatched types
  --> src/closures/sample_channel.rs:86:50
   |
86 |     handler.as_rust_type_mut_uninit().write(Some(h));
   |                                             ---- ^ expected `Receiver<Sample>`, found `FifoChannelHandler<_>`
   |                                             |
   |                                             arguments to this enum variant are incorrect
   |
   = note: expected struct `flume::Receiver<Sample>`
              found struct `FifoChannelHandler<_>`
help: the type constructed contains `FifoChannelHandler<_>` due to the type of the argument passed
  --> src/closures/sample_channel.rs:86:45
   |
86 |     handler.as_rust_type_mut_uninit().write(Some(h));
   |                                             ^^^^^-^
   |                                                  |
   |                                                  this argument influences the type of `Some`
note: tuple variant defined here
  --> /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/option.rs:577:5

For more information about this error, try `rustc --explain E0308`.
error: could not compile `zenoh-c` (lib) due to 3 previous errors

To reproduce

  1. Delete the Cargo.lock
  2. Run cargo check

System info

@YuanYuYuan YuanYuYuan added the bug Something isn't working label Oct 8, 2024
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