use the same expect string

This commit is contained in:
Guanqun Lu 2018-07-30 23:22:29 +08:00
parent 5934a78e01
commit 72a3706913
1 changed files with 1 additions and 1 deletions

View File

@ -344,7 +344,7 @@ fn try_spec(name: &str) -> Result<(), Error> {
use std::io::Read;
let mut spec_source = Vec::new();
let mut spec_file = File::open(&spec_script_path).expect("Can't open the file");
let mut spec_file = File::open(&spec_script_path).expect("Can't open file");
spec_file.read_to_end(&mut spec_source).expect("Can't read file");
let mut parser = ScriptParser::from_source_and_name(&spec_source, &format!("{}.wast", name)).expect("Can't read spec script");