From 19d933ba38e843833b9fce4776ee9b6b9f779e4e Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 25 Aug 2018 13:42:40 +0300 Subject: join lines works for lambdas --- crates/libeditor/tests/test.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'crates/libeditor/tests') diff --git a/crates/libeditor/tests/test.rs b/crates/libeditor/tests/test.rs index ab325c520..7e5e75ec2 100644 --- a/crates/libeditor/tests/test.rs +++ b/crates/libeditor/tests/test.rs @@ -198,6 +198,17 @@ fn foo() { fn foo() { <|>foo(1) } +"); + do_check(r" +pub fn reparse(&self, edit: &AtomEdit) -> File { + <|>self.incremental_reparse(edit).unwrap_or_else(|| { + self.full_reparse(edit) + }) +} +", r" +pub fn reparse(&self, edit: &AtomEdit) -> File { + <|>self.incremental_reparse(edit).unwrap_or_else(|| self.full_reparse(edit)) +} "); } -- cgit v1.2.3