internal: fix make API

This commit is contained in:
Aleksey Kladov 2021-05-09 19:11:42 +03:00
parent 5342800147
commit 680a0d54e4
4 changed files with 49 additions and 44 deletions

View file

@ -1192,7 +1192,7 @@ fn make_ret_ty(ctx: &AssistContext, module: hir::Module, fun: &Function) -> Opti
vec![fun_ty.make_ty(ctx, module), handler_ty],
)
}
FlowHandler::If { .. } => make::ty("bool"),
FlowHandler::If { .. } => make::ty_bool(),
FlowHandler::IfOption { action } => {
let handler_ty = action
.expr_ty(ctx)