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
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.
The text was updated successfully, but these errors were encountered:
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 differentHttpsConnector<HttpConnector>
| |
| arguments to this enum variant are incorrect
|
= note:
HttpsConnector<HttpConnector>
andHttpsConnector<HttpConnector>
have similar names, but are actually distinct typesnote:
HttpsConnector<HttpConnector>
is defined in cratehyper_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 cratehyper_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 structdrive3::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 errorserror: 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.The text was updated successfully, but these errors were encountered: