From 27ef06d0df7f3fffe71448ae9b92d382783ac569 Mon Sep 17 00:00:00 2001 From: John Eckersberg Date: Thu, 13 Jun 2024 11:35:26 -0400 Subject: [PATCH] Clippy janitor cleanup - Allow the needless_borrows in tests-integration - Remove empty else block Signed-off-by: John Eckersberg --- lib/src/utils.rs | 1 - tests-integration/src/tests-integration.rs | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/src/utils.rs b/lib/src/utils.rs index fbfd4138..bc50fdfe 100644 --- a/lib/src/utils.rs +++ b/lib/src/utils.rs @@ -108,7 +108,6 @@ where if pb.is_hidden() { print!("{}...", msg); std::io::stdout().flush().unwrap(); - } else { } let r = f.await; if pb.is_hidden() { diff --git a/tests-integration/src/tests-integration.rs b/tests-integration/src/tests-integration.rs index 860456a9..377c5fea 100644 --- a/tests-integration/src/tests-integration.rs +++ b/tests-integration/src/tests-integration.rs @@ -1,3 +1,6 @@ +#![allow(clippy::needless_borrow)] +#![allow(clippy::needless_borrows_for_generic_args)] + use std::path::PathBuf; use camino::Utf8PathBuf;