Fix unnecessarily-specific struct pattern in rust outline query (#18297)

Fixes https://github.com/zed-industries/zed/issues/18294

Release Notes:

- Fixed a recent regression where tuple and unit structs were omitted
from the outline view in Rust (#18294).
This commit is contained in:
Max Brunsfeld 2024-09-24 12:08:22 -07:00 committed by GitHub
parent f39e54decc
commit 9606858436
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,8 +4,7 @@
(struct_item
(visibility_modifier)? @context
"struct" @context
name: (_) @name
body: (_ "{" @open (_)* "}" @close)) @item
name: (_) @name) @item
(enum_item
(visibility_modifier)? @context