From 3789798e33f613dbdc91576eb57bf7691ba0568a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Tj=C3=A4der?= Date: Sat, 4 Mar 2023 20:52:29 +0100 Subject: [PATCH] xtask: clippy fixes --- xtask/src/argument_parsing.rs | 3 +++ xtask/src/cargo_commands.rs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/xtask/src/argument_parsing.rs b/xtask/src/argument_parsing.rs index aef5e3ab59..3e5afc3402 100644 --- a/xtask/src/argument_parsing.rs +++ b/xtask/src/argument_parsing.rs @@ -88,6 +88,7 @@ pub enum Backends { } impl Backends { + #[allow(clippy::wrong_self_convention)] pub fn to_target(&self) -> &str { match self { Backends::Thumbv6 => ARMV6M, @@ -97,6 +98,7 @@ impl Backends { } } + #[allow(clippy::wrong_self_convention)] pub fn to_rtic_feature(&self) -> &str { match self { Backends::Thumbv6 => "thumbv6-backend", @@ -105,6 +107,7 @@ impl Backends { Backends::Thumbv8Main => "thumbv8main-backend", } } + #[allow(clippy::wrong_self_convention)] pub fn to_rtic_macros_feature(&self) -> &str { match self { Backends::Thumbv6 => "cortex-m-source-masking", diff --git a/xtask/src/cargo_commands.rs b/xtask/src/cargo_commands.rs index f262c9fa11..7ac7aea964 100644 --- a/xtask/src/cargo_commands.rs +++ b/xtask/src/cargo_commands.rs @@ -154,7 +154,7 @@ pub fn cargo_test(package: &PackageOpt, backend: Backends) -> anyhow::Result<()> ] { let mut error_messages = vec![]; let cmd = &TestMetadata::match_package(package, backend); - if let Err(err) = command_parser(&cmd, false) { + if let Err(err) = command_parser(cmd, false) { error_messages.push(err); }