From 6e3fda247e7b8c3a489dc1e22550ca92f11e08c0 Mon Sep 17 00:00:00 2001 From: Syrus Akbary Date: Mon, 29 Jul 2019 18:31:57 -0700 Subject: [PATCH] Fix usage of Wasmer Version --- src/bin/wasmer.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bin/wasmer.rs b/src/bin/wasmer.rs index cbb5d96cb..fb6840c1d 100644 --- a/src/bin/wasmer.rs +++ b/src/bin/wasmer.rs @@ -18,7 +18,7 @@ use wasmer_clif_backend::CraneliftCompiler; #[cfg(feature = "backend-llvm")] use wasmer_llvm_backend::LLVMCompiler; use wasmer_runtime::{ - cache::{Cache as BaseCache, FileSystemCache, WasmHash, WASMER_VERSION}, + cache::{Cache as BaseCache, FileSystemCache, WasmHash, VERSION}, Func, Value, }; use wasmer_runtime_core::{ @@ -218,14 +218,14 @@ fn get_cache_dir() -> PathBuf { match env::var("WASMER_CACHE_DIR") { Ok(dir) => { let mut path = PathBuf::from(dir); - path.push(WASMER_VERSION); + path.push(VERSION); path } Err(_) => { // We use a temporal directory for saving cache files let mut temp_dir = env::temp_dir(); temp_dir.push("wasmer"); - temp_dir.push(WASMER_VERSION); + temp_dir.push(VERSION); temp_dir } }