aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_assists
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-09-12 22:35:28 +0100
committerGitHub <[email protected]>2019-09-12 22:35:28 +0100
commit1adf0519bcc8286c06e12aa7e5b16298addfea4a (patch)
tree3fe7cb05dc4d92d19ecbb87bfafc4a9ff202153e /crates/ra_assists
parentd8b621cf26b59ff5ae9379b50fc822590b6a3a4e (diff)
parent114a1b878e95c20490af574550ea0825b7a8f9d1 (diff)
Merge #1835
1835: rename AdtDef -> Adt r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_assists')
-rw-r--r--crates/ra_assists/src/fill_match_arms.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_assists/src/fill_match_arms.rs b/crates/ra_assists/src/fill_match_arms.rs
index cc3879562..543ed164c 100644
--- a/crates/ra_assists/src/fill_match_arms.rs
+++ b/crates/ra_assists/src/fill_match_arms.rs
@@ -1,6 +1,6 @@
1use std::iter; 1use std::iter;
2 2
3use hir::{db::HirDatabase, AdtDef, HasSource}; 3use hir::{db::HirDatabase, Adt, HasSource};
4use ra_syntax::ast::{self, AstNode, NameOwner}; 4use ra_syntax::ast::{self, AstNode, NameOwner};
5 5
6use crate::{ast_editor::AstBuilder, Assist, AssistCtx, AssistId}; 6use crate::{ast_editor::AstBuilder, Assist, AssistCtx, AssistId};
@@ -60,7 +60,7 @@ fn resolve_enum_def(
60 let expr_ty = analyzer.type_of(db, &expr)?; 60 let expr_ty = analyzer.type_of(db, &expr)?;
61 61
62 analyzer.autoderef(db, expr_ty).find_map(|ty| match ty.as_adt() { 62 analyzer.autoderef(db, expr_ty).find_map(|ty| match ty.as_adt() {
63 Some((AdtDef::Enum(e), _)) => Some(e.source(db).ast), 63 Some((Adt::Enum(e), _)) => Some(e.source(db).ast),
64 _ => None, 64 _ => None,
65 }) 65 })
66} 66}