Skip to content

Commit 54d6d88

Browse files
committed
Fix fmt
1 parent 6467ffe commit 54d6d88

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

crates/emmylua_code_analysis/src/semantic/generic/tpl_pattern/generic_tpl_pattern.rs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
use crate::{
2-
instantiate_type_generic, semantic::generic::tpl_pattern::{
3-
tpl_pattern_match, variadic_tpl_pattern_match, TplPatternMatchResult
4-
}, InferFailReason, InferGuard, InferGuardRef, LuaGenericType, LuaType, TplContext, TypeSubstitutor
2+
InferFailReason, InferGuard, InferGuardRef, LuaGenericType, LuaType, TplContext,
3+
TypeSubstitutor, instantiate_type_generic,
4+
semantic::generic::tpl_pattern::{
5+
TplPatternMatchResult, tpl_pattern_match, variadic_tpl_pattern_match,
6+
},
57
};
68

79
pub fn generic_tpl_pattern_match(
@@ -64,8 +66,10 @@ fn generic_tpl_pattern_match_inner(
6466
{
6567
for mut super_type in super_types {
6668
if super_type.contain_tpl() {
67-
let substitutor = TypeSubstitutor::from_type_array(target_generic.get_params().clone());
68-
super_type = instantiate_type_generic(context.db, &super_type, &substitutor);
69+
let substitutor =
70+
TypeSubstitutor::from_type_array(target_generic.get_params().clone());
71+
super_type =
72+
instantiate_type_generic(context.db, &super_type, &substitutor);
6973
}
7074

7175
generic_tpl_pattern_match_inner(

0 commit comments

Comments
 (0)