You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get compile error if trying to use reqwest v0.11.4. Build succeeds with reqwest v0.11.3.
error[E0277]: the trait bound Form: Clone is not satisfied
--> /home/test/.cargo/registry/src/github.com-1ecc6299db9ec823/reqwest-0.11.4/src/wasm/body.rs:24:15
|
24 | Multipart(Form),
| ^^^^ the trait Clone is not implemented for Form
|
= note: required by clone
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
Cargo.toml
[dependencies.reqwest] version = "=0.11.4" default-features = true features = ["json", "multipart"]
Ah yikes, thanks for the report! It's probably this line that was recently added. We should remove that derive, and change that clone method to a try_clone that matches on the inner type.
I get compile error if trying to use reqwest v0.11.4. Build succeeds with reqwest v0.11.3.
Cargo.toml
[dependencies.reqwest] version = "=0.11.4" default-features = true features = ["json", "multipart"]
Reproduced with rustc versions:
rustc 1.55.0-nightly (e6b4c252e 2021-06-25)
rustc 1.53.0 (53cb7b09b 2021-06-17)
Build command:
cargo build --target wasm32-unknown-unknown
The text was updated successfully, but these errors were encountered: