diff options
Diffstat (limited to 'crates/ra_assists/src/fill_match_arms.rs')
-rw-r--r-- | crates/ra_assists/src/fill_match_arms.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_assists/src/fill_match_arms.rs b/crates/ra_assists/src/fill_match_arms.rs index 939429892..85ff5c052 100644 --- a/crates/ra_assists/src/fill_match_arms.rs +++ b/crates/ra_assists/src/fill_match_arms.rs | |||
@@ -7,12 +7,12 @@ use ra_syntax::ast::{self, AstNode}; | |||
7 | use crate::{Assist, AssistCtx, AssistId}; | 7 | use crate::{Assist, AssistCtx, AssistId}; |
8 | 8 | ||
9 | fn is_trivial_arm(arm: &ast::MatchArm) -> bool { | 9 | fn is_trivial_arm(arm: &ast::MatchArm) -> bool { |
10 | fn single_pattern(arm: &ast::MatchArm) -> Option<ast::PatKind> { | 10 | fn single_pattern(arm: &ast::MatchArm) -> Option<ast::Pat> { |
11 | let (pat,) = arm.pats().collect_tuple()?; | 11 | let (pat,) = arm.pats().collect_tuple()?; |
12 | Some(pat.kind()) | 12 | Some(pat) |
13 | } | 13 | } |
14 | match single_pattern(arm) { | 14 | match single_pattern(arm) { |
15 | Some(ast::PatKind::PlaceholderPat(..)) => true, | 15 | Some(ast::Pat::PlaceholderPat(..)) => true, |
16 | _ => false, | 16 | _ => false, |
17 | } | 17 | } |
18 | } | 18 | } |