Skip to content

Commit

Permalink
fix: make fmt
Browse files Browse the repository at this point in the history
Signed-off-by: zongz <[email protected]>
  • Loading branch information
zong-zhe committed Oct 26, 2023
1 parent 9f100c7 commit 17bc5c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kclvm/sema/src/resolver/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -941,9 +941,9 @@ impl<'ctx> MutSelfTypedResultWalker<'ctx> for Resolver<'ctx> {
if let Some(args) = &lambda_expr.args {
for (i, arg) in args.node.args.iter().enumerate() {
let name = arg.node.get_name();
let arg_ty = args.node.get_arg_type(i);
let arg_ty = args.node.get_arg_type(i);
let ty = self.parse_ty_with_scope(&arg_ty, arg.get_span_pos());

// If the arguments type of a lambda is a schema type,
// It should be marked as an schema instance type.
let ty = if let TypeKind::Schema(sty) = &ty.kind {
Expand All @@ -953,7 +953,7 @@ impl<'ctx> MutSelfTypedResultWalker<'ctx> for Resolver<'ctx> {
} else {
ty.clone()
};

params.push(Parameter {
name,
ty: ty.clone(),
Expand Down

0 comments on commit 17bc5c3

Please sign in to comment.