Update init.rs (#350)

This commit is contained in:
Himess 2025-04-30 16:26:07 +03:00 committed by GitHub
parent 7972bf81d9
commit 3de0dc5ba3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,7 +20,7 @@ pub fn init_once() {
extern "C" {
fn GFp_cpuid_setup();
}
static INIT: std::sync::Once = std::sync::ONCE_INIT;
static INIT: std::sync::Once = std::sync::Once::new();
INIT.call_once(|| unsafe { GFp_cpuid_setup() });
}
}