Skip to content

Commit

Permalink
Fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Shadle committed Nov 15, 2024
1 parent 4c4514f commit 4aba967
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,10 +339,9 @@ impl TargetMatcher for target_lexicon::Triple {
self.operating_system,
OperatingSystem::WasiP1 | OperatingSystem::WasiP2
)
|| os == &targ::Os::nuttx && self.vendor == NUTTX
{
return true;
} else if os == &targ::Os::nuttx && self.vendor == NUTTX {
return true;
}

match os.0.parse::<OperatingSystem>() {
Expand Down Expand Up @@ -373,9 +372,7 @@ impl TargetMatcher for target_lexicon::Triple {
}
Vendor(ven) => match ven.0.parse::<target_lexicon::Vendor>() {
Ok(v) => {
if self.vendor == v {
true
} else if self.vendor == NUTTX && ven == &targ::Vendor::unknown {
if self.vendor == v || self.vendor == NUTTX && ven == &targ::Vendor::unknown {
true
} else if let target_lexicon::Vendor::Custom(custom) = &self.vendor {
matches!(custom.as_str(), "esp" | "esp32" | "esp32s2" | "esp32s3")
Expand Down

0 comments on commit 4aba967

Please sign in to comment.