Skip to content

no method named send_replace found for struct Arc<Sender<Option<Connected>>> #3195

@jauderho

Description

@jauderho

Version
hyper v0.14.25

Platform
Linux 6.2.0-19-generic #19-Ubuntu SMP PREEMPT_DYNAMIC Sat Mar 25 10:22:33 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Description
While trying to build rustybgp using the following command:

RUSTFLAGS="-C link-arg=-fuse-ld=mold" cargo build --release

Build stopped with the error message:

   Compiling hyper v0.14.25
error[E0599]: no method named `send_replace` found for struct `Arc<Sender<Option<Connected>>>` in the current scope
   --> /home/jauderho/.cargo/registry/src/github.com-1ecc6299db9ec823/hyper-0.14.25/src/client/connect/mod.rs:225:17
    |
225 |         self.tx.send_replace(Some(connected.clone()));
    |                 ^^^^^^^^^^^^ method not found in `Arc<Sender<Option<Connected>>>`

For more information about this error, try `rustc --explain E0599`.
error: could not compile `hyper` due to previous error

Looks like it came from this commit: https://github.com/hyperium/hyper/pull/3144/files

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug. Something is wrong. This is bad!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions