Skip to content

Commit 9606858

Browse files
authored
Fix unnecessarily-specific struct pattern in rust outline query (#18297)
Fixes #18294 Release Notes: - Fixed a recent regression where tuple and unit structs were omitted from the outline view in Rust (#18294).
1 parent f39e54d commit 9606858

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

crates/languages/src/rust/outline.scm

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
(struct_item
55
(visibility_modifier)? @context
66
"struct" @context
7-
name: (_) @name
8-
body: (_ "{" @open (_)* "}" @close)) @item
7+
name: (_) @name) @item
98

109
(enum_item
1110
(visibility_modifier)? @context

0 commit comments

Comments
 (0)