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

error while installing #96

Open
rica01 opened this issue Jun 15, 2024 · 0 comments
Open

error while installing #96

rica01 opened this issue Jun 15, 2024 · 0 comments

Comments

@rica01
Copy link

rica01 commented Jun 15, 2024

Compiling gcsf v0.2.4
error[E0308]: mismatched types
--> /home/ricardo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gcsf-0.2.4/src/gcsf/drive_facade.rs:113:12
|
113 | Ok(auth)
| -- ^^^^ expected HttpsConnector<HttpConnector>, found a different HttpsConnector<HttpConnector>
| |
| arguments to this enum variant are incorrect
|
= note: HttpsConnector<HttpConnector> and HttpsConnector<HttpConnector> have similar names, but are actually distinct types
note: HttpsConnector<HttpConnector> is defined in crate hyper_rustls
--> /home/ricardo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hyper-rustls-0.25.0/src/connector.rs:22:1
|
22 | pub struct HttpsConnector {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: HttpsConnector<HttpConnector> is defined in crate hyper_rustls
--> /home/ricardo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hyper-rustls-0.24.2/src/connector.rs:19:1
|
19 | pub struct HttpsConnector {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate hyper_rustls are being used?
help: the type constructed contains Authenticator<drive3::yup_oauth2::hyper_rustls::HttpsConnector<HttpConnector>> due to the type of the argument passed
--> /home/ricardo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gcsf-0.2.4/src/gcsf/drive_facade.rs:113:9
|
113 | Ok(auth)
| ^^^----^
| |
| this argument influences the type of Ok
note: tuple variant defined here
--> /build/rustc-kAv1jW/rustc-1.75.0+dfsg0ubuntu1~bpo0/library/core/src/result.rs:506:5

error[E0599]: no method named enable_http2 found for struct drive3::hyper_rustls::HttpsConnectorBuilder in the current scope
--> /home/ricardo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gcsf-0.2.4/src/gcsf/drive_facade.rs:126:22
|
122 | / hyper_rustls::HttpsConnectorBuilder::new()
123 | | .with_native_roots()
124 | | .https_or_http()
125 | | .enable_http1()
126 | | .enable_http2()
| | -^^^^^^^^^^^^ method not found in HttpsConnectorBuilder<WantsProtocols2>
| |_____________________|
|

Some errors have detailed explanations: E0308, E0599.
For more information about an error, try rustc --explain E0308.
error: could not compile gcsf (lib) due to 2 previous errors
error: failed to compile gcsf v0.2.4, intermediate artifacts can be found at /tmp/cargo-installl5dfKX.
To reuse those artifacts with a future compilation, set the environment variable CARGO_TARGET_DIR to that path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant