mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 08:34:33 +00:00
Remove unnecessary clone
This commit is contained in:
parent
731f7a11a1
commit
75b439cb31
1 changed files with 1 additions and 2 deletions
|
@ -1105,8 +1105,7 @@ fn call_spec(
|
||||||
let _bool = call_function!(builder, block, [element]);
|
let _bool = call_function!(builder, block, [element]);
|
||||||
|
|
||||||
// ListFindUnsafe returns { value: v, found: Bool=Int1 }
|
// ListFindUnsafe returns { value: v, found: Bool=Int1 }
|
||||||
let output_layouts =
|
let output_layouts = vec![arg_layouts[0], Layout::Builtin(Builtin::Int1)];
|
||||||
vec![arg_layouts[0].clone(), Layout::Builtin(Builtin::Int1)];
|
|
||||||
let output_layout = Layout::Struct(&output_layouts);
|
let output_layout = Layout::Struct(&output_layouts);
|
||||||
let output_type = layout_spec(builder, &output_layout)?;
|
let output_type = layout_spec(builder, &output_layout)?;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue