From 3300d80e3ffacf279748cc077b0bebb2688f48b6 Mon Sep 17 00:00:00 2001 From: Jan Scheer Date: Sat, 25 Sep 2021 11:02:49 +0200 Subject: [PATCH 1/2] tests: silence clippy warnings for unused_imports --- tests/test_util_name.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_util_name.rs b/tests/test_util_name.rs index b0a78a2e8..76b6f4728 100644 --- a/tests/test_util_name.rs +++ b/tests/test_util_name.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] mod common; use common::util::TestScenario; @@ -25,6 +26,7 @@ fn execution_phrase_double() { #[test] #[cfg(feature = "ls")] +#[cfg(any(unix, windows))] fn execution_phrase_single() { use std::process::Command; @@ -63,6 +65,7 @@ fn util_name_double() { #[test] #[cfg(feature = "sort")] +#[cfg(any(unix, windows))] fn util_name_single() { use std::{ io::Write, From 7c5395a27a0d9fafef98bad2ae4ad3e0876bab72 Mon Sep 17 00:00:00 2001 From: Jan Scheer Date: Mon, 18 Oct 2021 23:47:09 +0200 Subject: [PATCH 2/2] build.rs: silence clippy warnings --- build.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.rs b/build.rs index 4fbb27cce..261eb5d9a 100644 --- a/build.rs +++ b/build.rs @@ -46,6 +46,8 @@ pub fn main() { "type UtilityMap = HashMap<&'static str, (fn(T) -> i32, fn() -> App<'static, 'static>)>;\n\ \n\ fn util_map() -> UtilityMap {\n\ + \t#[allow(unused_mut)]\n\ + \t#[allow(clippy::let_and_return)]\n\ \tlet mut map = UtilityMap::new();\n\ " .as_bytes(),