mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 08:34:33 +00:00
Comply with clippy
This commit is contained in:
parent
8e34373d9f
commit
a5d746d9c9
1 changed files with 4 additions and 7 deletions
|
@ -1526,13 +1526,11 @@ fn list_push<'a, 'ctx, 'env>(
|
|||
|
||||
builder.build_store(elem_ptr, elem);
|
||||
|
||||
let answer = builder.build_bitcast(
|
||||
builder.build_bitcast(
|
||||
struct_val.into_struct_value(),
|
||||
collection(ctx, ptr_bytes),
|
||||
"cast_collection",
|
||||
);
|
||||
|
||||
answer
|
||||
)
|
||||
}
|
||||
|
||||
/// List.prepend List elem, elem -> List elem
|
||||
|
@ -1618,12 +1616,11 @@ fn list_prepend<'a, 'ctx, 'env>(
|
|||
.build_insert_value(struct_val, new_list_len, Builtin::WRAPPER_LEN, "insert_len")
|
||||
.unwrap();
|
||||
|
||||
let answer = builder.build_bitcast(
|
||||
builder.build_bitcast(
|
||||
struct_val.into_struct_value(),
|
||||
collection(ctx, ptr_bytes),
|
||||
"cast_collection",
|
||||
);
|
||||
answer
|
||||
)
|
||||
}
|
||||
|
||||
fn list_set<'a, 'ctx, 'env>(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue