diff --git a/compiler/unify/src/unify.rs b/compiler/unify/src/unify.rs index 6eee91b429..3f88aff3bd 100644 --- a/compiler/unify/src/unify.rs +++ b/compiler/unify/src/unify.rs @@ -1058,7 +1058,7 @@ fn unify_flat_type( tags2.insert(tag_name.clone(), vec![]); let union1 = gather_tags(subs, tags1.clone(), *ext1); - let union2 = gather_tags(subs, tags2.clone(), *ext2); + let union2 = gather_tags(subs, tags2, *ext2); unify_tag_union( subs, @@ -1076,7 +1076,7 @@ fn unify_flat_type( let mut tags1 = MutMap::default(); tags1.insert(tag_name.clone(), vec![]); - let union1 = gather_tags(subs, tags1.clone(), *ext1); + let union1 = gather_tags(subs, tags1, *ext1); let union2 = gather_tags(subs, tags2.clone(), *ext2); unify_tag_union_not_recursive_recursive(subs, pool, ctx, union1, union2, *recursion_var)