fix(lint): ignore redundant closures

master
Ashley Williams 6 years ago
parent b96538ec23
commit 8407a1dc18
  1. 1
      src/command/mod.rs
  2. 1
      src/command/utils.rs
  3. 5
      src/main.rs
  4. 2
      src/manifest/mod.rs

@ -1,4 +1,5 @@
//! CLI command structures, parsing, and execution.
#![allow(clippy::redundant_closure)]
pub mod build;
mod generate;

@ -1,4 +1,5 @@
//! Utility functions for commands.
#![allow(clippy::redundant_closure)]
use failure;
use std::fs;

@ -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")
{

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

Loading…
Cancel
Save