Skip to content

Commit 20716d3

Browse files
committed
Use new openssl_probe method that documents the unsafety
1 parent dab6f32 commit 20716d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ui/src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ use env::{PLAYGROUND_GITHUB_TOKEN, PLAYGROUND_UI_ROOT};
3434
fn main() {
3535
// Dotenv may be unable to load environment variables, but that's ok in production
3636
let _ = dotenv::dotenv();
37-
openssl_probe::init_ssl_cert_env_vars();
37+
// SAFETY: We have not started any other threads yet.
38+
unsafe { openssl_probe::init_openssl_env_vars(); }
3839

3940
// Info-level logging is enabled by default.
4041
tracing_subscriber::fmt()

0 commit comments

Comments
 (0)