aboutsummaryrefslogtreecommitdiff
path: root/crates/assists/src/handlers
diff options
context:
space:
mode:
authorVladyslav Katasonov <[email protected]>2021-02-03 14:47:21 +0000
committerVladyslav Katasonov <[email protected]>2021-02-03 14:47:21 +0000
commit313aa5f3a2a9237c96c97c5852da39cf83bcb1ae (patch)
tree8f3d2960940612c4a68116b5983192dc9f9771f2 /crates/assists/src/handlers
parentf0d2bb9131fab4898221d30caf0b5a12800ba4e8 (diff)
change TODO to FIXME
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 }