From 51289e7277c0e6ac705031d6f7507ecdfda7cf5b Mon Sep 17 00:00:00 2001 From: Isabel Atkinson Date: Thu, 23 Jan 2025 14:03:03 -0700 Subject: [PATCH] minor: remove call to deprecated function --- src/runtime/tls_openssl.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/tls_openssl.rs b/src/runtime/tls_openssl.rs index cbc431aee..d65578af3 100644 --- a/src/runtime/tls_openssl.rs +++ b/src/runtime/tls_openssl.rs @@ -113,7 +113,7 @@ fn make_openssl_connector(cfg: TlsOptions) -> Result { fn init_trust() { static ONCE: Once = Once::new(); - ONCE.call_once(openssl_probe::init_ssl_cert_env_vars); + ONCE.call_once(|| unsafe { openssl_probe::init_openssl_env_vars() }); } fn make_ssl_stream(