mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
internal: fix make API
This commit is contained in:
parent
5342800147
commit
680a0d54e4
4 changed files with 49 additions and 44 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue