clippy fixes

This commit is contained in:
Folkert 2023-10-04 21:11:36 +02:00
parent 27aab8b69a
commit 66db1ce206
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
2 changed files with 1 additions and 2 deletions

View file

@ -914,7 +914,6 @@ struct AArch64CallStoreArgs {
impl AArch64CallStoreArgs {
const GENERAL_PARAM_REGS: &'static [AArch64GeneralReg] = AArch64Call::GENERAL_PARAM_REGS;
const GENERAL_RETURN_REGS: &'static [AArch64GeneralReg] = AArch64Call::GENERAL_RETURN_REGS;
const FLOAT_PARAM_REGS: &'static [AArch64FloatReg] = AArch64Call::FLOAT_PARAM_REGS;
const FLOAT_RETURN_REGS: &'static [AArch64FloatReg] = AArch64Call::FLOAT_RETURN_REGS;

View file

@ -590,7 +590,7 @@ where
}
if size - copied >= 1 {
for _ in 0..(size - copied) / 1 {
for _ in 0..(size - copied) {
ASM::mov_reg8_base32(buf, tmp_reg, base_offset + copied as i32);
ASM::mov_stack32_reg8(buf, stack_offset + copied as i32, tmp_reg);