Rename more Error and Result types.

This commit is contained in:
Dan Gohman
2018-06-12 04:43:02 -07:00
parent 43bd3cb2a3
commit 1b55a2d005
12 changed files with 157 additions and 150 deletions

View File

@@ -47,7 +47,7 @@ fn return_at_end() {
handle_module(Path::new("../../wasmtests/return_at_end.wat"), &flags);
}
fn read_file(path: &Path) -> Result<Vec<u8>, io::Error> {
fn read_file(path: &Path) -> io::Result<Vec<u8>> {
let mut buf: Vec<u8> = Vec::new();
let mut file = File::open(path)?;
file.read_to_end(&mut buf)?;