diff options
author | Aleksey Kladov <[email protected]> | 2021-04-30 09:55:59 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2021-04-30 09:55:59 +0100 |
commit | 1a01a5ae190ad02e44c3550ac0336b1f0983be51 (patch) | |
tree | b779be1e0b4b4fa0a7afda5dc6d81ec11f5eb428 /crates/ide_assists/src/utils | |
parent | cb3ef552e873a86e94a3792160fadb5d937a6f5f (diff) |
internal: fix naming polarity
Type Constructors have *parameters*, when they are substituted with type
*arguments*, we have a type.
Diffstat (limited to 'crates/ide_assists/src/utils')
-rw-r--r-- | crates/ide_assists/src/utils/suggest_name.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide_assists/src/utils/suggest_name.rs b/crates/ide_assists/src/utils/suggest_name.rs index 533624c1f..deafcd630 100644 --- a/crates/ide_assists/src/utils/suggest_name.rs +++ b/crates/ide_assists/src/utils/suggest_name.rs | |||
@@ -227,7 +227,7 @@ fn name_of_type(ty: &hir::Type, db: &RootDatabase) -> Option<String> { | |||
227 | let name = adt.name(db).to_string(); | 227 | let name = adt.name(db).to_string(); |
228 | 228 | ||
229 | if WRAPPER_TYPES.contains(&name.as_str()) { | 229 | if WRAPPER_TYPES.contains(&name.as_str()) { |
230 | let inner_ty = ty.type_parameters().next()?; | 230 | let inner_ty = ty.type_arguments().next()?; |
231 | return name_of_type(&inner_ty, db); | 231 | return name_of_type(&inner_ty, db); |
232 | } | 232 | } |
233 | 233 | ||