Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Revert accidental change to Rust outline files (#21545)

Conrad Irwin44264ffedcfe
diff --git a/crates/languages/src/rust/outline.scm b/crates/languages/src/rust/outline.scm
index 4299a01f196..3012995e2a7 100644
--- a/crates/languages/src/rust/outline.scm
+++ b/crates/languages/src/rust/outline.scm
@@ -15,7 +15,11 @@
(visibility_modifier)? @context
name: (_) @name) @item
-(function_item
+(impl_item
+ "impl" @context
+ trait: (_)? @name
+ "for"? @context
+ type: (_) @name
body: (_ "{" @open (_)* "}" @close)) @item
(trait_item