From 90764fc54b2be1e0fc5d6ac9c9e960d7bb059b14 Mon Sep 17 00:00:00 2001 From: Edwin Cheng Date: Sun, 26 May 2019 02:41:00 +0800 Subject: Remove duplicated code --- crates/ra_mbe/src/syntax_bridge.rs | 4 ---- 1 file changed, 4 deletions(-) (limited to 'crates') diff --git a/crates/ra_mbe/src/syntax_bridge.rs b/crates/ra_mbe/src/syntax_bridge.rs index 6265fe462..0a7e50c4e 100644 --- a/crates/ra_mbe/src/syntax_bridge.rs +++ b/crates/ra_mbe/src/syntax_bridge.rs @@ -58,10 +58,6 @@ where return Err(ExpandError::ConversionError); } - if tree_sink.roots.len() != 1 { - return Err(ExpandError::ConversionError); - } - Ok(tree_sink.inner.finish()) } -- cgit v1.2.3