Skip to content

Commit

Permalink
Fix 1 cargo clippy error
Browse files Browse the repository at this point in the history
  • Loading branch information
fractasy committed Dec 9, 2024
1 parent 081b4f6 commit 130f0c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/mem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ impl Mem {

#[inline(always)]
pub fn address_is_register(address: u64) -> bool {
((address & 0x7) == 0) && (address >= REG_FIRST) && (address <= REG_LAST)
((address & 0x7) == 0) && (REG_FIRST..=REG_LAST).contains(&address)
}

#[inline(always)]
Expand Down

0 comments on commit 130f0c5

Please sign in to comment.