diff --git a/src/command/mod.rs b/src/command/mod.rs index 1fd24fd..a556307 100644 --- a/src/command/mod.rs +++ b/src/command/mod.rs @@ -1,4 +1,5 @@ //! CLI command structures, parsing, and execution. +#![allow(clippy::redundant_closure)] pub mod build; mod generate; diff --git a/src/command/utils.rs b/src/command/utils.rs index 337bdc5..0846bf2 100644 --- a/src/command/utils.rs +++ b/src/command/utils.rs @@ -1,4 +1,5 @@ //! Utility functions for commands. +#![allow(clippy::redundant_closure)] use failure; use std::fs; diff --git a/src/main.rs b/src/main.rs index d40a18c..ad9b152 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,5 @@ +#![allow(clippy::redundant_closure, clippy::redundant_pattern_matching)] + extern crate atty; extern crate env_logger; #[macro_use] @@ -64,7 +66,8 @@ fn run() -> Result<(), failure::Error> { // If we're actually running as the installer then execute our // self-installation, otherwise just continue as usual. if me - .file_stem().and_then(|s| s.to_str()) + .file_stem() + .and_then(|s| s.to_str()) .expect("executable should have a filename") .starts_with("wasm-pack-init") { diff --git a/src/manifest/mod.rs b/src/manifest/mod.rs index d23d867..b959bb6 100644 --- a/src/manifest/mod.rs +++ b/src/manifest/mod.rs @@ -1,6 +1,6 @@ //! Reading and writing Cargo.toml and package.json manifests. -#![allow(clippy::new_ret_no_self, clippy::needless_pass_by_value)] +#![allow(clippy::new_ret_no_self, clippy::needless_pass_by_value, clippy::redundant_closure)] mod npm;