Skip to content

Commit

Permalink
don't use trailing comma
Browse files Browse the repository at this point in the history
trailing comma got introduced in version 1.48 of rust
(rust-lang/rust#74880)

without this, it is now possible to compile with rust 1.43

closes #5
  • Loading branch information
8051Enthusiast committed Jul 2, 2021
1 parent 39f4344 commit 41cded9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ pub fn instr_align_count(
if let Some(target) = instr.get_jump_target() {
let is_abs = matches!(
instr.itype,
InsType::LJMP | InsType::LCALL | InsType::AJMP | InsType::ACALL,
InsType::LJMP | InsType::LCALL | InsType::AJMP | InsType::ACALL
);
// count number of valid aligned jumps
if (abs || !is_abs) && (count_outside || target < is_instr_start.len()) {
Expand Down

0 comments on commit 41cded9

Please sign in to comment.