diff options
Diffstat (limited to 'crates/ide_assists/src/handlers/extract_function.rs')
-rw-r--r-- | crates/ide_assists/src/handlers/extract_function.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide_assists/src/handlers/extract_function.rs b/crates/ide_assists/src/handlers/extract_function.rs index 4116985ae..494ef4621 100644 --- a/crates/ide_assists/src/handlers/extract_function.rs +++ b/crates/ide_assists/src/handlers/extract_function.rs | |||
@@ -1192,7 +1192,7 @@ fn make_ret_ty(ctx: &AssistContext, module: hir::Module, fun: &Function) -> Opti | |||
1192 | vec![fun_ty.make_ty(ctx, module), handler_ty], | 1192 | vec![fun_ty.make_ty(ctx, module), handler_ty], |
1193 | ) | 1193 | ) |
1194 | } | 1194 | } |
1195 | FlowHandler::If { .. } => make::ty("bool"), | 1195 | FlowHandler::If { .. } => make::ty_bool(), |
1196 | FlowHandler::IfOption { action } => { | 1196 | FlowHandler::IfOption { action } => { |
1197 | let handler_ty = action | 1197 | let handler_ty = action |
1198 | .expr_ty(ctx) | 1198 | .expr_ty(ctx) |