mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
update with new clippy lints
This commit is contained in:
parent
51b360b578
commit
0dd2cec09a
22 changed files with 53 additions and 77 deletions
|
@ -884,10 +884,8 @@ pub fn build_exp_literal<'a, 'ctx, 'env>(
|
|||
|
||||
let struct_type = str_type;
|
||||
|
||||
let mut struct_val;
|
||||
|
||||
// Store the pointer
|
||||
struct_val = builder
|
||||
let mut struct_val = builder
|
||||
.build_insert_value(
|
||||
struct_type.get_undef(),
|
||||
ptr,
|
||||
|
@ -2113,8 +2111,7 @@ fn reserve_with_refcount_union_as_block_of_memory<'a, 'ctx, 'env>(
|
|||
|
||||
let alignment_bytes = fields
|
||||
.iter()
|
||||
.map(|tag| tag.iter().map(|l| l.alignment_bytes(env.target_info)))
|
||||
.flatten()
|
||||
.flat_map(|tag| tag.iter().map(|l| l.alignment_bytes(env.target_info)))
|
||||
.max()
|
||||
.unwrap_or(0);
|
||||
|
||||
|
|
|
@ -1285,10 +1285,8 @@ pub fn store_list<'a, 'ctx, 'env>(
|
|||
|
||||
let struct_type = super::convert::zig_list_type(env);
|
||||
|
||||
let mut struct_val;
|
||||
|
||||
// Store the pointer
|
||||
struct_val = builder
|
||||
let mut struct_val = builder
|
||||
.build_insert_value(
|
||||
struct_type.get_undef(),
|
||||
pass_as_opaque(env, pointer_to_first_element),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue