mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
Fix clippy warnings
This commit is contained in:
parent
5f831b6f50
commit
260c080d41
1 changed files with 3 additions and 3 deletions
|
@ -534,7 +534,7 @@ impl Assembler<AArch64GeneralReg, AArch64FloatReg> for AArch64Assembler {
|
|||
|
||||
#[inline(always)]
|
||||
fn jmp_imm32(buf: &mut Vec<'_, u8>, offset: i32) -> usize {
|
||||
if offset >= -(1 << 27) && offset < (1 << 27) {
|
||||
if (-(1 << 27)..(1 << 27)).contains(&offset) {
|
||||
b_imm26(buf, offset);
|
||||
} else {
|
||||
todo!("jump offsets over 27 bits for AArch64: {:#x}", offset);
|
||||
|
@ -565,7 +565,7 @@ impl Assembler<AArch64GeneralReg, AArch64FloatReg> for AArch64Assembler {
|
|||
);
|
||||
}
|
||||
|
||||
if offset >= -(1 << 20) && offset < (1 << 20) {
|
||||
if (-(1 << 20)..(1 << 20)).contains(&offset) {
|
||||
b_cond_imm19(buf, ConditionCode::NE, offset);
|
||||
} else {
|
||||
todo!("jump offsets over 20 bits for AArch64: {:#x}", offset);
|
||||
|
@ -2111,7 +2111,7 @@ mod tests {
|
|||
AArch64GeneralReg::ZRSP,
|
||||
];
|
||||
|
||||
const ALL_CONDITIONS: &'static [ConditionCode] = &[
|
||||
const ALL_CONDITIONS: &[ConditionCode] = &[
|
||||
ConditionCode::EQ,
|
||||
ConditionCode::NE,
|
||||
ConditionCode::CSHS,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue