diff options
Diffstat (limited to 'crates/ra_ide/src/diagnostics')
-rw-r--r-- | crates/ra_ide/src/diagnostics/diagnostics_with_fix.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_ide/src/diagnostics/diagnostics_with_fix.rs b/crates/ra_ide/src/diagnostics/diagnostics_with_fix.rs index f7c73773f..88e593e00 100644 --- a/crates/ra_ide/src/diagnostics/diagnostics_with_fix.rs +++ b/crates/ra_ide/src/diagnostics/diagnostics_with_fix.rs | |||
@@ -13,7 +13,7 @@ use ra_ide_db::{ | |||
13 | RootDatabase, | 13 | RootDatabase, |
14 | }; | 14 | }; |
15 | use ra_syntax::{algo, ast, AstNode}; | 15 | use ra_syntax::{algo, ast, AstNode}; |
16 | use ra_text_edit::{TextEdit, TextEditBuilder}; | 16 | use ra_text_edit::TextEdit; |
17 | 17 | ||
18 | /// A [Diagnostic] that potentially has a fix available. | 18 | /// A [Diagnostic] that potentially has a fix available. |
19 | /// | 19 | /// |
@@ -70,7 +70,7 @@ impl DiagnosticWithFix for MissingFields { | |||
70 | } | 70 | } |
71 | 71 | ||
72 | let edit = { | 72 | let edit = { |
73 | let mut builder = TextEditBuilder::default(); | 73 | let mut builder = TextEdit::builder(); |
74 | algo::diff(&old_field_list.syntax(), &new_field_list.syntax()) | 74 | algo::diff(&old_field_list.syntax(), &new_field_list.syntax()) |
75 | .into_text_edit(&mut builder); | 75 | .into_text_edit(&mut builder); |
76 | builder.finish() | 76 | builder.finish() |