Update msrv
Avoid Arc::into_inner since it requires 1.70
This commit is contained in:
parent
00fd45a199
commit
e71fd87417
2 changed files with 5 additions and 8 deletions
2
.github/workflows/check.yml
vendored
2
.github/workflows/check.yml
vendored
|
|
@ -99,7 +99,7 @@ jobs:
|
|||
# https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability
|
||||
strategy:
|
||||
matrix:
|
||||
msrv: ["1.57.0"] # base64 0.21 requires 1.57
|
||||
msrv: ["1.65.0"]
|
||||
name: ubuntu / ${{ matrix.msrv }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ use std::sync::Arc;
|
|||
|
||||
#[cfg(feature = "rustls-tls")]
|
||||
#[derive(Debug)]
|
||||
struct NoCertVerification(rustls::client::WebPkiServerVerifier);
|
||||
struct NoCertVerification(Arc<rustls::client::WebPkiServerVerifier>);
|
||||
|
||||
#[cfg(feature = "rustls-tls")]
|
||||
impl rustls::client::danger::ServerCertVerifier for NoCertVerification {
|
||||
|
|
@ -365,12 +365,9 @@ where
|
|||
config
|
||||
.dangerous()
|
||||
.set_certificate_verifier(Arc::new(NoCertVerification(
|
||||
Arc::into_inner(
|
||||
rustls::client::WebPkiServerVerifier::builder(Arc::new(CACERTS.clone()))
|
||||
.build()
|
||||
.expect("can construct standard verifier"),
|
||||
)
|
||||
.expect("just constructed, so should only be one"),
|
||||
rustls::client::WebPkiServerVerifier::builder(Arc::new(CACERTS.clone()))
|
||||
.build()
|
||||
.expect("can construct standard verifier"),
|
||||
)));
|
||||
}
|
||||
let ssl_conn: RustlsConnector = config.into();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue