diff options
author | yanchith <[email protected]> | 2019-03-18 07:19:51 +0000 |
---|---|---|
committer | yanchith <[email protected]> | 2019-03-18 07:19:51 +0000 |
commit | 8d47e004b806555a39151e3227a1cc6800eb77e9 (patch) | |
tree | 2788f44bf45801e3a38c60e38178d69aed68a0b5 /crates | |
parent | 907f7307af8b1824fdd986ff32f78fed5fc54b30 (diff) |
Remove unachievable TODO
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_assists/src/fill_struct_fields.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/crates/ra_assists/src/fill_struct_fields.rs b/crates/ra_assists/src/fill_struct_fields.rs index 05a5ebf66..938322d1d 100644 --- a/crates/ra_assists/src/fill_struct_fields.rs +++ b/crates/ra_assists/src/fill_struct_fields.rs | |||
@@ -11,7 +11,6 @@ pub(crate) fn fill_struct_fields(mut ctx: AssistCtx<impl HirDatabase>) -> Option | |||
11 | let struct_lit = ctx.node_at_offset::<ast::StructLit>()?; | 11 | let struct_lit = ctx.node_at_offset::<ast::StructLit>()?; |
12 | 12 | ||
13 | // If we already have existing struct fields, don't provide the assist. | 13 | // If we already have existing struct fields, don't provide the assist. |
14 | // TODO: provide assist for tuple structs | ||
15 | match struct_lit.named_field_list() { | 14 | match struct_lit.named_field_list() { |
16 | Some(named_field_list) if named_field_list.fields().count() > 0 => { | 15 | Some(named_field_list) if named_field_list.fields().count() > 0 => { |
17 | return None; | 16 | return None; |