diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-11-22 18:52:44 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-11-22 18:52:44 +0000 |
commit | 5b19202e00fffe62a1a9c07f4b974f0affdd0c66 (patch) | |
tree | 0accd61a43762a6a34ae046ef6e23c3f7a930910 /crates/ra_assists/src/assists/add_new.rs | |
parent | 4d49b5d174430feede9833c5e66c39ee41b5fa3e (diff) | |
parent | d8caf56dfc9eb3cdddff05b58b954a78cf1b9476 (diff) |
Merge #2361
2361: Uniformalize naming r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_assists/src/assists/add_new.rs')
-rw-r--r-- | crates/ra_assists/src/assists/add_new.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_assists/src/assists/add_new.rs b/crates/ra_assists/src/assists/add_new.rs index b5f8afb4e..ee8bff346 100644 --- a/crates/ra_assists/src/assists/add_new.rs +++ b/crates/ra_assists/src/assists/add_new.rs | |||
@@ -36,7 +36,7 @@ pub(crate) fn add_new(ctx: AssistCtx<impl HirDatabase>) -> Option<Assist> { | |||
36 | 36 | ||
37 | // We want to only apply this to non-union structs with named fields | 37 | // We want to only apply this to non-union structs with named fields |
38 | let field_list = match (strukt.kind(), strukt.is_union()) { | 38 | let field_list = match (strukt.kind(), strukt.is_union()) { |
39 | (StructKind::Named(named), false) => named, | 39 | (StructKind::Record(named), false) => named, |
40 | _ => return None, | 40 | _ => return None, |
41 | }; | 41 | }; |
42 | 42 | ||