diff options
author | Aleksey Kladov <[email protected]> | 2020-08-12 15:58:56 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-08-12 15:58:56 +0100 |
commit | 7510048ec0a5d5e7136e3ea258954eb244d15baf (patch) | |
tree | 97a472bf38e4e3e079db27abf1f2c7b523a0d0b1 /crates/ra_assists/src | |
parent | 8d34262956059aca7e6fded351a9299b3581a5cf (diff) |
Cleanup TextEdit API
Diffstat (limited to 'crates/ra_assists/src')
-rw-r--r-- | crates/ra_assists/src/assist_context.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_assists/src/assist_context.rs b/crates/ra_assists/src/assist_context.rs index afd3fd4b9..afba860d1 100644 --- a/crates/ra_assists/src/assist_context.rs +++ b/crates/ra_assists/src/assist_context.rs | |||
@@ -15,7 +15,7 @@ use ra_syntax::{ | |||
15 | AstNode, SourceFile, SyntaxElement, SyntaxKind, SyntaxNode, SyntaxToken, TextRange, TextSize, | 15 | AstNode, SourceFile, SyntaxElement, SyntaxKind, SyntaxNode, SyntaxToken, TextRange, TextSize, |
16 | TokenAtOffset, | 16 | TokenAtOffset, |
17 | }; | 17 | }; |
18 | use ra_text_edit::TextEditBuilder; | 18 | use ra_text_edit::{TextEdit, TextEditBuilder}; |
19 | 19 | ||
20 | use crate::{ | 20 | use crate::{ |
21 | assist_config::{AssistConfig, SnippetCap}, | 21 | assist_config::{AssistConfig, SnippetCap}, |
@@ -214,7 +214,7 @@ pub(crate) struct AssistBuilder { | |||
214 | impl AssistBuilder { | 214 | impl AssistBuilder { |
215 | pub(crate) fn new(file_id: FileId) -> AssistBuilder { | 215 | pub(crate) fn new(file_id: FileId) -> AssistBuilder { |
216 | AssistBuilder { | 216 | AssistBuilder { |
217 | edit: TextEditBuilder::default(), | 217 | edit: TextEdit::builder(), |
218 | file_id, | 218 | file_id, |
219 | is_snippet: false, | 219 | is_snippet: false, |
220 | change: SourceChange::default(), | 220 | change: SourceChange::default(), |