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
When adding reqwest to my dependency list and building, I get this error (presumably from a subdependency of yours, as building works without reqwest in my dependency list):
error[E0195]: lifetime parameters or bounds on type `Target` do not match the trait declaration
--> /Users/altanis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/native-tls-0.2.11/src/imp/security_framework.rs:41:1
|
41 | / lazy_static! {
42 | | static ref TEMP_KEYCHAIN: Mutex<Option<(SecKeychain, TempDir)>> = Mutex::new(None);
43 | | }
| |_^ lifetimes do not match type in trait
|
= note: this error originates in the macro `__lazy_static_internal` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0599]: no method named `lock` found for struct `TEMP_KEYCHAIN` in the current scope
--> /Users/altanis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/native-tls-0.2.11/src/imp/security_framework.rs:162:45
|
41 | / lazy_static! {
42 | | static ref TEMP_KEYCHAIN: Mutex<Option<(SecKeychain, TempDir)>> = Mutex::new(None);
43 | | }
| |_- method `lock` not found for this struct
...
162 | let keychain = match *TEMP_KEYCHAIN.lock().unwrap() {
| ^^^^ method not found in `TEMP_KEYCHAIN`
error[E0282]: type annotations needed
--> /Users/altanis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/native-tls-0.2.11/src/imp/security_framework.rs:163:49
|
163 | Some((ref keychain, _)) => keychain.clone(),
| ^^^^^ cannot infer type
error[E0599]: no method named `lock` found for struct `TEMP_KEYCHAIN` in the current scope
--> /Users/altanis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/native-tls-0.2.11/src/imp/security_framework.rs:155:32
|
41 | / lazy_static! {
42 | | static ref TEMP_KEYCHAIN: Mutex<Option<(SecKeychain, TempDir)>> = Mutex::new(None);
43 | | }
| |_- method `lock` not found for this struct
...
155 | *TEMP_KEYCHAIN.lock().unwrap() = None;
| ^^^^ method not found in `TEMP_KEYCHAIN`
Some errors have detailed explanations: E0195, E0282, E0599.
For more information about an error, try `rustc --explain E0195`.
error: could not compile `native-tls` (lib) due to 4 previous errors
warning: build failed, waiting for other jobs to finish...
The text was updated successfully, but these errors were encountered:
Some other simple things to try is cargo clean, in case something messed up in the cache. And also cargo update, in case you're using an old version of the dependencies.
This repo is actively maintained, and CI also is passing, so it's likely a difference in your environment that I can't easily predict.
When adding
reqwest
to my dependency list and building, I get this error (presumably from a subdependency of yours, as building works withoutreqwest
in my dependency list):The text was updated successfully, but these errors were encountered: