aboutsummaryrefslogtreecommitdiff
path: root/crates/assists/src/handlers
diff options
context:
space:
mode:
Diffstat (limited to 'crates/assists/src/handlers')
-rw-r--r--crates/assists/src/handlers/extract_function.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/assists/src/handlers/extract_function.rs b/crates/assists/src/handlers/extract_function.rs
index 66c5cdb8f..958199e5e 100644
--- a/crates/assists/src/handlers/extract_function.rs
+++ b/crates/assists/src/handlers/extract_function.rs
@@ -125,8 +125,8 @@ pub(crate) fn extract_function(acc: &mut Assists, ctx: &AssistContext) -> Option
125 let expr = body.tail_expr(); 125 let expr = body.tail_expr();
126 let ret_ty = match expr { 126 let ret_ty = match expr {
127 Some(expr) => { 127 Some(expr) => {
128 // TODO: can we do assist when type is unknown? 128 // FIXME: can we do assist when type is unknown?
129 // We can insert something like `-> ()` 129 // We can insert something like `-> ()`
130 let ty = ctx.sema.type_of_expr(&expr)?; 130 let ty = ctx.sema.type_of_expr(&expr)?;
131 Some(ty.display_source_code(ctx.db(), module.into()).ok()?) 131 Some(ty.display_source_code(ctx.db(), module.into()).ok()?)
132 } 132 }