Update clippy settings and fix a few clippy warnings.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Reads Wasm binary/text files, translates the functions' code to Cranelift IR.
|
||||
#![cfg_attr(
|
||||
feature = "cargo-clippy",
|
||||
allow(too_many_arguments, cyclomatic_complexity)
|
||||
allow(clippy::too_many_arguments, clippy::cyclomatic_complexity)
|
||||
)]
|
||||
|
||||
use crate::utils::{parse_sets_and_triple, read_to_end};
|
||||
|
||||
Reference in New Issue
Block a user