Update clippy settings and fix a few clippy warnings.

This commit is contained in:
Dan Gohman
2019-01-07 11:21:28 -08:00
parent a7aee246e9
commit 9eba81a8d9
40 changed files with 246 additions and 233 deletions

View File

@@ -111,9 +111,7 @@ fn handle_module(
.compile(isa)
.map_err(|err| pretty_error(&context.func, Some(isa), err))?;
let mut mem = Vec::new();
mem.resize(total_size as usize, 0);
let mut mem = vec![0; total_size as usize];
let mut relocs = PrintRelocs { flag_print };
let mut traps = PrintTraps { flag_print };
let mut code_sink: binemit::MemoryCodeSink;