mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
clippy auto fix
This commit is contained in:
parent
c6cf0b4ebe
commit
abf2d5760d
1 changed files with 2 additions and 2 deletions
|
@ -3341,7 +3341,7 @@ fn const_i128<'a, 'ctx, 'env>(env: &Env<'a, 'ctx, 'env>, value: i128) -> IntValu
|
|||
|
||||
fn const_u128<'a, 'ctx, 'env>(env: &Env<'a, 'ctx, 'env>, value: u128) -> IntValue<'ctx> {
|
||||
// truncate the lower 64 bits
|
||||
let value = value as u128;
|
||||
let value = value;
|
||||
let a = value as u64;
|
||||
|
||||
// get the upper 64 bits
|
||||
|
@ -3488,7 +3488,7 @@ fn build_switch_ir<'a, 'ctx, 'env>(
|
|||
let int_val = if condition_int_type == context.i128_type() {
|
||||
const_i128(env, *int as i128)
|
||||
} else {
|
||||
condition_int_type.const_int(*int as u64, false)
|
||||
condition_int_type.const_int(*int, false)
|
||||
};
|
||||
|
||||
let block = context.append_basic_block(parent, format!("branch{}", int).as_str());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue