Skip to content

Commit 2b013d1

Browse files
committed
Use new openssl_probe method that documents the unsafety
1 parent dab6f32 commit 2b013d1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ui/src/main.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ 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 {
39+
openssl_probe::init_openssl_env_vars();
40+
}
3841

3942
// Info-level logging is enabled by default.
4043
tracing_subscriber::fmt()

0 commit comments

Comments
 (0)