Skip to content

Commit 8108927

Browse files
author
Noah Hüsser
committed
Make code more readable
1 parent 77a5681 commit 8108927

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

xtask/src/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ pub static EXAMPLES: &[(&str, &[&str])] = &[
4040
pub fn feature_to_target(feat: &str) -> &str {
4141
match feat {
4242
"51" => "thumbv6m-none-eabi",
43-
"52810" => "thumbv7em-none-eabi",
44-
"52811" => "thumbv7em-none-eabi",
43+
"52810" | "52811" => "thumbv7em-none-eabi",
4544
_ if feat.starts_with("52") => "thumbv7em-none-eabihf",
4645
_ => panic!("unknown Cargo feature `{}`", feat),
4746
}

0 commit comments

Comments
 (0)