Fix clippy warnings.
This commit fixes the current set of (stable) clippy warnings in the repo.
This commit is contained in:
committed by
Andrew Brown
parent
1176e4f178
commit
9f506692c2
@@ -328,6 +328,7 @@ impl Mutator for RemoveUnusedEntities {
|
||||
4
|
||||
}
|
||||
|
||||
#[allow(clippy::cognitive_complexity)]
|
||||
fn mutate(&mut self, mut func: Function) -> Option<(Function, String, ProgressStatus)> {
|
||||
let name = match self.kind {
|
||||
0 => {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Reads Wasm binary/text files, translates the functions' code to Cranelift IR.
|
||||
#![cfg_attr(
|
||||
feature = "cargo-clippy",
|
||||
allow(clippy::too_many_arguments, clippy::cyclomatic_complexity)
|
||||
allow(clippy::too_many_arguments, clippy::cognitive_complexity)
|
||||
)]
|
||||
|
||||
use crate::disasm::{print_all, PrintRelocs, PrintStackmaps, PrintTraps};
|
||||
|
||||
Reference in New Issue
Block a user