Add dyn in benches

This commit is contained in:
Sergey Pepyakin 2019-07-10 16:57:58 +03:00
parent b49c14c443
commit cc7de205a6
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ use wasmi::{ImportsBuilder, Module, ModuleInstance, NopExternals, RuntimeValue};
use test::Bencher;
// Load a module from a file.
fn load_from_file(filename: &str) -> Result<Module, Box<error::Error>> {
fn load_from_file(filename: &str) -> Result<Module, Box<dyn error::Error>> {
use std::io::prelude::*;
let mut file = File::open(filename)?;
let mut buf = Vec::new();