diff options
Diffstat (limited to 'crates/ra_assists/src/merge_match_arms.rs')
-rw-r--r-- | crates/ra_assists/src/merge_match_arms.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_assists/src/merge_match_arms.rs b/crates/ra_assists/src/merge_match_arms.rs index bc5f6f17c..225a48d3a 100644 --- a/crates/ra_assists/src/merge_match_arms.rs +++ b/crates/ra_assists/src/merge_match_arms.rs | |||
@@ -30,8 +30,8 @@ pub(crate) fn merge_match_arms(mut ctx: AssistCtx<impl HirDatabase>) -> Option<A | |||
30 | 30 | ||
31 | ctx.add_action(AssistId("merge_match_arms"), "merge match arms", |edit| { | 31 | ctx.add_action(AssistId("merge_match_arms"), "merge match arms", |edit| { |
32 | fn contains_placeholder(a: &MatchArm) -> bool { | 32 | fn contains_placeholder(a: &MatchArm) -> bool { |
33 | a.pats().any(|x| match x.kind() { | 33 | a.pats().any(|x| match x { |
34 | ra_syntax::ast::PatKind::PlaceholderPat(..) => true, | 34 | ra_syntax::ast::Pat::PlaceholderPat(..) => true, |
35 | _ => false, | 35 | _ => false, |
36 | }) | 36 | }) |
37 | } | 37 | } |