Update dependencies and use Once::new() instead of ONCE_INIT
This commit is contained in:
10
Cargo.toml
10
Cargo.toml
@@ -27,11 +27,11 @@ winx = { path = "winx" }
|
||||
winapi = "0.3"
|
||||
|
||||
[dev-dependencies]
|
||||
wasmtime-runtime = { git = "https://github.com/cranestation/wasmtime", rev = "042c877" }
|
||||
wasmtime-environ = { git = "https://github.com/cranestation/wasmtime", rev = "042c877" }
|
||||
wasmtime-jit = { git = "https://github.com/cranestation/wasmtime", rev = "042c877" }
|
||||
wasmtime-wasi = { git = "https://github.com/cranestation/wasmtime", rev = "042c877" }
|
||||
cranelift-codegen = "0.41.0"
|
||||
wasmtime-runtime = { git = "https://github.com/cranestation/wasmtime", rev = "cb38b48" }
|
||||
wasmtime-environ = { git = "https://github.com/cranestation/wasmtime", rev = "cb38b48" }
|
||||
wasmtime-jit = { git = "https://github.com/cranestation/wasmtime", rev = "cb38b48" }
|
||||
wasmtime-wasi = { git = "https://github.com/cranestation/wasmtime", rev = "cb38b48" }
|
||||
cranelift-codegen = "0.44.0"
|
||||
cranelift-entity = "0.44.0"
|
||||
cranelift-wasm = "0.44.0"
|
||||
cranelift-native = "0.44.0"
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
mod runtime;
|
||||
mod utils;
|
||||
|
||||
use std::sync::{Once, ONCE_INIT};
|
||||
use std::sync::Once;
|
||||
|
||||
static LOG_INIT: Once = ONCE_INIT;
|
||||
static LOG_INIT: Once = Once::new();
|
||||
|
||||
fn setup_log() {
|
||||
LOG_INIT.call_once(|| {
|
||||
|
||||
Reference in New Issue
Block a user