mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 15:15:24 +00:00
change TODO to FIXME
This commit is contained in:
parent
f0d2bb9131
commit
313aa5f3a2
1 changed files with 2 additions and 2 deletions
|
@ -125,7 +125,7 @@ pub(crate) fn extract_function(acc: &mut Assists, ctx: &AssistContext) -> Option
|
|||
let expr = body.tail_expr();
|
||||
let ret_ty = match expr {
|
||||
Some(expr) => {
|
||||
// TODO: can we do assist when type is unknown?
|
||||
// FIXME: can we do assist when type is unknown?
|
||||
// We can insert something like `-> ()`
|
||||
let ty = ctx.sema.type_of_expr(&expr)?;
|
||||
Some(ty.display_source_code(ctx.db(), module.into()).ok()?)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue