mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
pass slice instead of vector
This commit is contained in:
parent
1c6fab7043
commit
cb55f66b5b
1 changed files with 2 additions and 2 deletions
|
@ -422,7 +422,7 @@ fn gather_edges<'a>(
|
|||
// TODO remove clone
|
||||
let all_edges = relevant_tests
|
||||
.into_iter()
|
||||
.map(|t| edges_for(path, branches.clone(), t))
|
||||
.map(|t| edges_for(path, &branches, t))
|
||||
.collect();
|
||||
|
||||
let fallbacks = if check {
|
||||
|
@ -583,7 +583,7 @@ fn test_at_path<'a>(
|
|||
// understanding: if the test is successful, where could we go?
|
||||
fn edges_for<'a>(
|
||||
path: &[PathInstruction],
|
||||
branches: Vec<Branch<'a>>,
|
||||
branches: &[Branch<'a>],
|
||||
test: GuardedTest<'a>,
|
||||
) -> (GuardedTest<'a>, Vec<Branch<'a>>) {
|
||||
let mut new_branches = Vec::new();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue