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 manage my rust packages using cargo. I just tried to upgrade dprint from 0.45.1 to 0.46.0 using cargo, but I get this error message:
error[E0308]: mismatched types
--> /home/kal/.cargo/registry/src/index.crates.io-6f17d22bba15001f/dprint-0.46.0/src/utils/url.rs:121:39
|
121 | agent = agent.tls_config(Arc::new(config));
| -------- ^^^^^^ expected `rustls::client::client_conn::ClientConfig`, found `ClientConfig`
| |
| arguments to this function are incorrect
|
= note: `ClientConfig` and `rustls::client::client_conn::ClientConfig` have similar names, but are actually distinct types
note: `ClientConfig` is defined in crate `rustls`
--> /home/kal/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustls-0.21.12/src/client/client_conn.rs:128:1
|
128 | pub struct ClientConfig {
| ^^^^^^^^^^^^^^^^^^^^^^^
note: `rustls::client::client_conn::ClientConfig` is defined in crate `rustls`
--> /home/kal/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustls-0.22.4/src/client/client_conn.rs:150:1
|
150 | pub struct ClientConfig {
| ^^^^^^^^^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `rustls` are being used?
note: associated function defined here
--> /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/alloc/src/sync.rs:392:12
For more information about this error, try `rustc --explain E0308`.
error: could not compile `dprint` (bin "dprint") due to 1 previous error
error: failed to compile `dprint v0.46.0`, intermediate artifacts can be found at `/tmp/cargo-installWezSf7`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
Updated 0 packages.
Failed to update dprint.
The text was updated successfully, but these errors were encountered:
I manage my rust packages using cargo. I just tried to upgrade dprint from 0.45.1 to 0.46.0 using cargo, but I get this error message:
The text was updated successfully, but these errors were encountered: