diff options
author | Aleksey Kladov <[email protected]> | 2018-08-13 12:24:22 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-13 12:24:22 +0100 |
commit | ed2ac1713326df6b926062efcc6109a20cdf7c37 (patch) | |
tree | c1c75d09e2adbbd54190c5b6ce6efdb7ea251da3 /crates/libeditor/src/symbols.rs | |
parent | 18486a02fae5966e61f16ea7bc5c33c6c7c69487 (diff) |
smol_str to a crate
Diffstat (limited to 'crates/libeditor/src/symbols.rs')
-rw-r--r-- | crates/libeditor/src/symbols.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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, |