From b9b0a655bb824dd2b17d8f8934c77fb22dacef9e Mon Sep 17 00:00:00 2001 From: Lachlan Sneff Date: Mon, 10 Dec 2018 18:31:08 -0500 Subject: [PATCH] Update to Rust 2018. (#47) * Run cargo fix --edition * Add edition="2018" to Cargo.toml --- Cargo.toml | 2 +- src/bin/wasmer.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index a81644fd4..efd3b553a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "wasmer" version = "0.1.3" authors = ["Syrus Akbary "] -# edition = "2018" +edition = "2018" repository = "https://github.com/wasmerio/wasmer" publish = true description = "High-Performance WebAssembly JIT interpreter" diff --git a/src/bin/wasmer.rs b/src/bin/wasmer.rs index e15ef0d7c..5021a7737 100644 --- a/src/bin/wasmer.rs +++ b/src/bin/wasmer.rs @@ -7,7 +7,7 @@ use std::io::Read; use std::path::PathBuf; use std::process::exit; -use apis::emscripten::{allocate_on_stack, allocate_cstr_on_stack}; +use crate::apis::emscripten::{allocate_on_stack, allocate_cstr_on_stack}; use structopt::StructOpt; use wasmer::*;