Update dependencies and use Once::new() instead of ONCE_INIT

This commit is contained in:
Jakub Konka
2019-10-02 22:10:15 +02:00
parent 6749015c26
commit da59c95f0c
2 changed files with 7 additions and 7 deletions

View File

@@ -27,11 +27,11 @@ winx = { path = "winx" }
winapi = "0.3" winapi = "0.3"
[dev-dependencies] [dev-dependencies]
wasmtime-runtime = { git = "https://github.com/cranestation/wasmtime", rev = "042c877" } wasmtime-runtime = { git = "https://github.com/cranestation/wasmtime", rev = "cb38b48" }
wasmtime-environ = { git = "https://github.com/cranestation/wasmtime", rev = "042c877" } wasmtime-environ = { git = "https://github.com/cranestation/wasmtime", rev = "cb38b48" }
wasmtime-jit = { git = "https://github.com/cranestation/wasmtime", rev = "042c877" } wasmtime-jit = { git = "https://github.com/cranestation/wasmtime", rev = "cb38b48" }
wasmtime-wasi = { git = "https://github.com/cranestation/wasmtime", rev = "042c877" } wasmtime-wasi = { git = "https://github.com/cranestation/wasmtime", rev = "cb38b48" }
cranelift-codegen = "0.41.0" cranelift-codegen = "0.44.0"
cranelift-entity = "0.44.0" cranelift-entity = "0.44.0"
cranelift-wasm = "0.44.0" cranelift-wasm = "0.44.0"
cranelift-native = "0.44.0" cranelift-native = "0.44.0"

View File

@@ -1,9 +1,9 @@
mod runtime; mod runtime;
mod utils; 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() { fn setup_log() {
LOG_INIT.call_once(|| { LOG_INIT.call_once(|| {