[clippy] Remove unnecessary closures;

This commit is contained in:
Benjamin Bouvier
2018-07-09 16:03:25 +02:00
committed by Dan Gohman
parent b616644495
commit 0ad7dbf689
2 changed files with 4 additions and 4 deletions

View File

@@ -131,7 +131,7 @@ pub fn translate_module<'data>(
let size = reader.bytes_remaining();
environ.define_function_body(reader
.read_bytes(size)
.map_err(|e| WasmError::from_binary_reader_error(e))?)?;
.map_err(WasmError::from_binary_reader_error)?)?;
}
loop {
match *parser.read() {