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

@@ -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};