mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Mutex::new() is now const
This commit is contained in:
parent
8b53a13f0e
commit
e92ceb7282
9 changed files with 31 additions and 45 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue