From d55d26980f338179e5d1829fb8d16b1d509530f1 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Thu, 24 Nov 2022 11:49:01 -0600 Subject: [PATCH] style: Make clippy happy --- ci/src/task.rs | 2 +- src/fmt/writer/mod.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/src/task.rs b/ci/src/task.rs index b6740549..5ef844e7 100644 --- a/ci/src/task.rs +++ b/ci/src/task.rs @@ -58,7 +58,7 @@ pub fn test(args: TestArgs) -> bool { } if let Some(features) = &features { - command.args(&["--features", features]); + command.args(["--features", features]); } println!("running {:?}", command); diff --git a/src/fmt/writer/mod.rs b/src/fmt/writer/mod.rs index 2b56772e..7f4b6f94 100644 --- a/src/fmt/writer/mod.rs +++ b/src/fmt/writer/mod.rs @@ -165,6 +165,7 @@ impl Builder { } /// Whether or not to capture logs for `cargo test`. + #[allow(clippy::wrong_self_convention)] pub(crate) fn is_test(&mut self, is_test: bool) -> &mut Self { self.is_test = is_test; self