Skip to content

Commit

Permalink
fmt code
Browse files Browse the repository at this point in the history
Signed-off-by: he1pa <18012015693@163.com>
  • Loading branch information
He1pa committed Jan 13, 2025
1 parent a0d5f42 commit 994e19d
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions kclvm/sema/src/resolver/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -400,18 +400,16 @@ impl<'ctx> MutSelfTypedResultWalker<'ctx> for Resolver<'_> {
TypeKind::Function(_) | TypeKind::Module(_) | TypeKind::None | TypeKind::Void => {
self.handler.add_error(
ErrorKind::TypeError,
&[
Message {
range: schema_attr.ty.get_span_pos(),
style: Style::LineAndColumn,
message: format!(
"can not define the type '{}' as schema attr",
expected_ty.ty_str(),
),
note: None,
suggested_replacement: None,
}
],
&[Message {
range: schema_attr.ty.get_span_pos(),
style: Style::LineAndColumn,
message: format!(
"can not define the type '{}' as schema attr",
expected_ty.ty_str(),
),
note: None,
suggested_replacement: None,
}],
);
}

Expand Down

0 comments on commit 994e19d

Please sign in to comment.