aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_assists/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_assists/src')
-rw-r--r--crates/ra_assists/src/merge_match_arms.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_assists/src/merge_match_arms.rs b/crates/ra_assists/src/merge_match_arms.rs
index 225a48d3a..3b6a99895 100644
--- a/crates/ra_assists/src/merge_match_arms.rs
+++ b/crates/ra_assists/src/merge_match_arms.rs
@@ -8,7 +8,7 @@ pub(crate) fn merge_match_arms(mut ctx: AssistCtx<impl HirDatabase>) -> Option<A
8 // We check if the following match arm matches this one. We could, but don't, 8 // We check if the following match arm matches this one. We could, but don't,
9 // compare to the previous match arm as well. 9 // compare to the previous match arm as well.
10 let next = current_arm.syntax().next_sibling(); 10 let next = current_arm.syntax().next_sibling();
11 let next_arm = MatchArm::cast(next?.clone())?; 11 let next_arm = MatchArm::cast(next?)?;
12 12
13 // Don't try to handle arms with guards for now - can add support for this later 13 // Don't try to handle arms with guards for now - can add support for this later
14 if current_arm.guard().is_some() || next_arm.guard().is_some() { 14 if current_arm.guard().is_some() || next_arm.guard().is_some() {