Skip to content

Can not build yew-agent 0.3.0 #3489

@Dirreke

Description

@Dirreke

Problem
Can not build yew-agent 0.3.0

Screenshots

error[E0599]: no method named `clone` found for struct `WorkerBridge` in the current scope
  --> ~/.cargo/registry/src/index.crates.io-6f17d22bba15001f/yew-agent-0.3.0/src/worker/hooks.rs:45:31
   |
45 |             inner: self.inner.clone(),
   |                               ^^^^^ method not found in `WorkerBridge<T>`

error[E0599]: no method named `clone` found for struct `WorkerBridge` in the current scope
   -->~/.cargo/registry/src/index.crates.io-6f17d22bba15001f/yew-agent-0.3.0/src/worker/hooks.rs:109:26
    |
109 |         inner: (*bridge).clone(),
    |                          ^^^^^ method not found in `WorkerBridge<T>`

error[E0599]: no method named `clone` found for mutable reference `&mut WorkerBridge<W>` in the current scope
  -->~/.cargo/registry/src/index.crates.io-6f17d22bba15001f/yew-agent-0.3.0/src/worker/provider.rs:70:26
   |
70 |             Some(m) => m.clone(),
   |                          ^^^^^ method not found in `&mut WorkerBridge<W>`

error[E0599]: no method named `clone` found for struct `WorkerBridge` in the current scope
  --> ~/.cargo/registry/src/index.crates.io-6f17d22bba15001f/yew-agent-0.3.0/src/worker/provider.rs:73:44
   |
73 |                 *held_bridge = Some(bridge.clone());
   |                                            ^^^^^ method not found in `WorkerBridge<W>`

For more information about this error, try `rustc --explain E0599`.
error: could not compile `yew-agent` (lib) due to 4 previous errors

Environment:

  • Yew version: 0.21
  • Rust version: 1.73.0
  • Target, wasm32-unknown-unknown
  • Build tool, if relevant: trunk

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions