diff options
author | Aleksey Kladov <[email protected]> | 2020-07-31 12:22:47 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-07-31 13:12:51 +0100 |
commit | a6e45c6c69bf258118940941c12d057deb79e60c (patch) | |
tree | 35fa6b63518cec8219a43e96525f6d570ac18eec /crates/ra_assists/src/handlers | |
parent | 08ea2271e8050165d0aaf4c994ed3dd746aff3ba (diff) |
Reame PlaceholderType -> InferType
Diffstat (limited to 'crates/ra_assists/src/handlers')
-rw-r--r-- | crates/ra_assists/src/handlers/add_explicit_type.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_assists/src/handlers/add_explicit_type.rs b/crates/ra_assists/src/handlers/add_explicit_type.rs index e69f0a89b..d8b0af0f5 100644 --- a/crates/ra_assists/src/handlers/add_explicit_type.rs +++ b/crates/ra_assists/src/handlers/add_explicit_type.rs | |||
@@ -46,7 +46,7 @@ pub(crate) fn add_explicit_type(acc: &mut Assists, ctx: &AssistContext) -> Optio | |||
46 | // and it has no placeholders | 46 | // and it has no placeholders |
47 | let ascribed_ty = let_stmt.ty(); | 47 | let ascribed_ty = let_stmt.ty(); |
48 | if let Some(ty) = &ascribed_ty { | 48 | if let Some(ty) = &ascribed_ty { |
49 | if ty.syntax().descendants().find_map(ast::PlaceholderType::cast).is_none() { | 49 | if ty.syntax().descendants().find_map(ast::InferType::cast).is_none() { |
50 | return None; | 50 | return None; |
51 | } | 51 | } |
52 | } | 52 | } |