Skip to content

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
alex authored Dec 28, 2024
1 parent 95aca05 commit 082d69e
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions tests/codegen/const-array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@

#![crate_type = "lib"]

const LUT: [u8; 2] = [
1,
1,
];
const LUT: [u8; 2] = [1, 1];

// CHECK-LABEL: @decode
#[no_mangle]
Expand All @@ -14,9 +11,5 @@ pub fn decode(i: u8) -> u8 {
// CHECK-NEXT: icmp
// CHECK-NEXT: select
// CHECK-NEXT: ret
if i < 2 {
LUT[i as usize]
} else {
2
}
if i < 2 { LUT[i as usize] } else { 2 }
}

0 comments on commit 082d69e

Please sign in to comment.