chore: cargo clippy

This commit is contained in:
2025-07-17 16:34:18 +08:00
parent 781f701891
commit 74e819c678
9 changed files with 57 additions and 43 deletions

View File

@@ -1,7 +1,6 @@
use cranelift::codegen::ir::{self, BlockCall, StackSlot, ValueListPool};
use cranelift::codegen::ir::{self, StackSlot};
use cranelift::prelude::*;
use crate::eval::Evaluate;
use crate::ir::*;
use crate::ty::common as c;
use crate::ty::internal::Value;
@@ -493,7 +492,7 @@ impl JITCompile for Const {
}
Int(x) => {
let tag = ctx.builder.ins().iconst(types::I64, Value::INT as i64);
let val = ctx.builder.ins().iconst(types::I64, x as i64);
let val = ctx.builder.ins().iconst(types::I64, x);
ctx.builder.ins().stack_store(tag, slot, 0);
ctx.builder.ins().stack_store(val, slot, 8);
}