mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-29 15:04:32 +01:00
xtask: clippy fixes
This commit is contained in:
parent
d9bf04ae15
commit
3789798e33
2 changed files with 4 additions and 1 deletions
|
@ -88,6 +88,7 @@ pub enum Backends {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Backends {
|
impl Backends {
|
||||||
|
#[allow(clippy::wrong_self_convention)]
|
||||||
pub fn to_target(&self) -> &str {
|
pub fn to_target(&self) -> &str {
|
||||||
match self {
|
match self {
|
||||||
Backends::Thumbv6 => ARMV6M,
|
Backends::Thumbv6 => ARMV6M,
|
||||||
|
@ -97,6 +98,7 @@ impl Backends {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::wrong_self_convention)]
|
||||||
pub fn to_rtic_feature(&self) -> &str {
|
pub fn to_rtic_feature(&self) -> &str {
|
||||||
match self {
|
match self {
|
||||||
Backends::Thumbv6 => "thumbv6-backend",
|
Backends::Thumbv6 => "thumbv6-backend",
|
||||||
|
@ -105,6 +107,7 @@ impl Backends {
|
||||||
Backends::Thumbv8Main => "thumbv8main-backend",
|
Backends::Thumbv8Main => "thumbv8main-backend",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#[allow(clippy::wrong_self_convention)]
|
||||||
pub fn to_rtic_macros_feature(&self) -> &str {
|
pub fn to_rtic_macros_feature(&self) -> &str {
|
||||||
match self {
|
match self {
|
||||||
Backends::Thumbv6 => "cortex-m-source-masking",
|
Backends::Thumbv6 => "cortex-m-source-masking",
|
||||||
|
|
|
@ -154,7 +154,7 @@ pub fn cargo_test(package: &PackageOpt, backend: Backends) -> anyhow::Result<()>
|
||||||
] {
|
] {
|
||||||
let mut error_messages = vec![];
|
let mut error_messages = vec![];
|
||||||
let cmd = &TestMetadata::match_package(package, backend);
|
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);
|
error_messages.push(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue