From 3360118040a84d4f387db1c1d340fcaeeede2976 Mon Sep 17 00:00:00 2001 From: Christoph Herzog Date: Tue, 7 Jul 2020 12:10:18 +0200 Subject: Refactor AssistBuilder to manage a SourceChange `AssistBuilder`` now managaes a full `SourceChange` instead of a Vec. This prepares AssistBuilder to handle creation of new files. --- crates/ra_ide_db/src/source_change.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_ide_db') diff --git a/crates/ra_ide_db/src/source_change.rs b/crates/ra_ide_db/src/source_change.rs index 0bbd3c3e5..abb83f421 100644 --- a/crates/ra_ide_db/src/source_change.rs +++ b/crates/ra_ide_db/src/source_change.rs @@ -6,7 +6,7 @@ use ra_db::FileId; use ra_text_edit::TextEdit; -#[derive(Debug, Clone)] +#[derive(Default, Debug, Clone)] pub struct SourceChange { pub source_file_edits: Vec, pub file_system_edits: Vec, -- cgit v1.2.3