diff options
author | Aleksey Kladov <[email protected]> | 2021-04-30 09:52:31 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2021-04-30 09:52:31 +0100 |
commit | cb3ef552e873a86e94a3792160fadb5d937a6f5f (patch) | |
tree | b19bf27eb2f6ed299d4095a43a8b618fbf347d7d /crates/ide_assists/src/handlers | |
parent | 49b219b1035e20143818d409404b5e6f19a7ad1d (diff) |
internal: normalize name
All def types in hir are unsubstituted
Diffstat (limited to 'crates/ide_assists/src/handlers')
-rw-r--r-- | crates/ide_assists/src/handlers/generate_from_impl_for_enum.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide_assists/src/handlers/generate_from_impl_for_enum.rs b/crates/ide_assists/src/handlers/generate_from_impl_for_enum.rs index c13c6eebe..ce6998d82 100644 --- a/crates/ide_assists/src/handlers/generate_from_impl_for_enum.rs +++ b/crates/ide_assists/src/handlers/generate_from_impl_for_enum.rs | |||
@@ -91,7 +91,7 @@ fn existing_from_impl( | |||
91 | 91 | ||
92 | let enum_type = enum_.ty(sema.db); | 92 | let enum_type = enum_.ty(sema.db); |
93 | 93 | ||
94 | let wrapped_type = variant.fields(sema.db).get(0)?.signature_ty(sema.db); | 94 | let wrapped_type = variant.fields(sema.db).get(0)?.ty(sema.db); |
95 | 95 | ||
96 | if enum_type.impls_trait(sema.db, from_trait, &[wrapped_type]) { | 96 | if enum_type.impls_trait(sema.db, from_trait, &[wrapped_type]) { |
97 | Some(()) | 97 | Some(()) |