aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorEdwin Cheng <[email protected]>2019-05-25 19:41:00 +0100
committerEdwin Cheng <[email protected]>2019-05-25 19:41:00 +0100
commit90764fc54b2be1e0fc5d6ac9c9e960d7bb059b14 (patch)
tree3fb7e8fdbc93e02109e2ca4535cfee11988bf97e /crates
parent816147c4b508117fad4ca4d3cb6d77a3c4a683a9 (diff)
Remove duplicated code
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_mbe/src/syntax_bridge.rs4
1 files changed, 0 insertions, 4 deletions
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
58 return Err(ExpandError::ConversionError); 58 return Err(ExpandError::ConversionError);
59 } 59 }
60 60
61 if tree_sink.roots.len() != 1 {
62 return Err(ExpandError::ConversionError);
63 }
64
65 Ok(tree_sink.inner.finish()) 61 Ok(tree_sink.inner.finish())
66} 62}
67 63