Mutex::new() is now const

This commit is contained in:
Folkert 2022-11-09 17:51:43 +01:00
parent 8b53a13f0e
commit e92ceb7282
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
9 changed files with 31 additions and 45 deletions

View file

@ -23,9 +23,10 @@ thread_local! {
// Even if Cargo uses many threads, these tests won't go any faster. But that's fine, they're quick.
lazy_static! {
static ref COMPILER: Instance = init_compiler();
static ref TEST_MUTEX: Mutex<()> = Mutex::new(());
}
static TEST_MUTEX: Mutex<()> = Mutex::new(());
/// Load the compiler .wasm file and get it ready to execute
/// THIS FUNCTION TAKES 4 SECONDS TO RUN
fn init_compiler() -> Instance {