From a4635a199bc446bd103aa5821e57dc19b8a15751 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 3 Jan 2019 18:59:17 +0300 Subject: more enterprisey assists API --- crates/ra_text_edit/src/text_edit.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'crates/ra_text_edit') diff --git a/crates/ra_text_edit/src/text_edit.rs b/crates/ra_text_edit/src/text_edit.rs index 0881f3e1c..a288a990d 100644 --- a/crates/ra_text_edit/src/text_edit.rs +++ b/crates/ra_text_edit/src/text_edit.rs @@ -7,15 +7,12 @@ pub struct TextEdit { atoms: Vec, } -#[derive(Debug)] +#[derive(Debug, Default)] pub struct TextEditBuilder { atoms: Vec, } impl TextEditBuilder { - pub fn new() -> TextEditBuilder { - TextEditBuilder { atoms: Vec::new() } - } pub fn replace(&mut self, range: TextRange, replace_with: String) { self.atoms.push(AtomTextEdit::replace(range, replace_with)) } -- cgit v1.2.3