From d8caf56dfc9eb3cdddff05b58b954a78cf1b9476 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 22 Nov 2019 21:52:06 +0300 Subject: Uniformalize naming --- crates/ra_assists/src/assists/add_new.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_assists/src/assists/add_new.rs') 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) -> Option { // We want to only apply this to non-union structs with named fields let field_list = match (strukt.kind(), strukt.is_union()) { - (StructKind::Named(named), false) => named, + (StructKind::Record(named), false) => named, _ => return None, }; -- cgit v1.2.3