diff options
Diffstat (limited to 'crates/libeditor/src')
-rw-r--r-- | crates/libeditor/src/lib.rs | 1 | ||||
-rw-r--r-- | crates/libeditor/src/symbols.rs | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/crates/libeditor/src/lib.rs b/crates/libeditor/src/lib.rs index 1e88f1471..e5933cbd6 100644 --- a/crates/libeditor/src/lib.rs +++ b/crates/libeditor/src/lib.rs | |||
@@ -1,6 +1,7 @@ | |||
1 | extern crate libsyntax2; | 1 | extern crate libsyntax2; |
2 | extern crate superslice; | 2 | extern crate superslice; |
3 | extern crate itertools; | 3 | extern crate itertools; |
4 | extern crate smol_str; | ||
4 | 5 | ||
5 | mod extend_selection; | 6 | mod extend_selection; |
6 | mod symbols; | 7 | mod symbols; |
diff --git a/crates/libeditor/src/symbols.rs b/crates/libeditor/src/symbols.rs index 5cd781c80..03f2313f7 100644 --- a/crates/libeditor/src/symbols.rs +++ b/crates/libeditor/src/symbols.rs | |||
@@ -1,3 +1,4 @@ | |||
1 | use smol_str::SmolStr; | ||
1 | use libsyntax2::{ | 2 | use libsyntax2::{ |
2 | SyntaxKind, SyntaxNodeRef, SyntaxRoot, AstNode, | 3 | SyntaxKind, SyntaxNodeRef, SyntaxRoot, AstNode, |
3 | ast::{self, NameOwner}, | 4 | ast::{self, NameOwner}, |
@@ -11,7 +12,7 @@ use TextRange; | |||
11 | #[derive(Debug)] | 12 | #[derive(Debug)] |
12 | pub struct FileSymbol { | 13 | pub struct FileSymbol { |
13 | pub parent: Option<usize>, | 14 | pub parent: Option<usize>, |
14 | pub name: String, | 15 | pub name: SmolStr, |
15 | pub name_range: TextRange, | 16 | pub name_range: TextRange, |
16 | pub node_range: TextRange, | 17 | pub node_range: TextRange, |
17 | pub kind: SyntaxKind, | 18 | pub kind: SyntaxKind, |