Skip to content

Commit

Permalink
Make code more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
Noah Hüsser committed Sep 28, 2020
1 parent 77a5681 commit 8108927
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions xtask/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ pub static EXAMPLES: &[(&str, &[&str])] = &[
pub fn feature_to_target(feat: &str) -> &str {
match feat {
"51" => "thumbv6m-none-eabi",
"52810" => "thumbv7em-none-eabi",
"52811" => "thumbv7em-none-eabi",
"52810" | "52811" => "thumbv7em-none-eabi",
_ if feat.starts_with("52") => "thumbv7em-none-eabihf",
_ => panic!("unknown Cargo feature `{}`", feat),
}
Expand Down

1 comment on commit 8108927

@cpfister
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about the (application processors of the) nRF5340 and the nRF9160?

Please sign in to comment.