From d53e7af40835b06a391bd8780edaa0160eec2411 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 18 Jan 2022 00:47:39 -0500 Subject: clippy --- src/parse/ast.rs | 2 -- src/shell/history/mod.rs | 2 -- 2 files changed, 4 deletions(-) (limited to 'src') diff --git a/src/parse/ast.rs b/src/parse/ast.rs index 5dabb43..bd177a4 100644 --- a/src/parse/ast.rs +++ b/src/parse/ast.rs @@ -351,7 +351,6 @@ impl WordPart { } } - #[allow(clippy::needless_pass_by_value)] fn build_ast( pair: pest::iterators::Pair, ) -> impl Iterator + '_ { @@ -402,7 +401,6 @@ struct Redirect { } impl Redirect { - #[allow(clippy::needless_pass_by_value)] fn build_ast(pair: pest::iterators::Pair) -> Self { assert!(matches!(pair.as_rule(), Rule::redirect)); let mut iter = pair.into_inner(); diff --git a/src/shell/history/mod.rs b/src/shell/history/mod.rs index 60979b6..1bc4e62 100644 --- a/src/shell/history/mod.rs +++ b/src/shell/history/mod.rs @@ -376,8 +376,6 @@ async fn spawn_commands( } if let (true, Some(status)) = (read_done, exit_done) { nix::unistd::close(from_r)?; - // nix::sys::signal::Signal is repr(i32) - #[allow(clippy::as_conversions)] return Ok(status); } } -- cgit v1.2.3-54-g00ecf