From f69fcc08d2a3fdd5a1d06219c839f562ba8f2003 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Fri, 23 Feb 2018 08:59:42 -0800 Subject: [PATCH] Update Rust to 063deba92e --- clippy_lints/src/enum_variants.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clippy_lints/src/enum_variants.rs b/clippy_lints/src/enum_variants.rs index b3dd275f6..b72949a73 100644 --- a/clippy_lints/src/enum_variants.rs +++ b/clippy_lints/src/enum_variants.rs @@ -260,7 +260,7 @@ impl EarlyLintPass for EnumVariantNames { ); } } - if item.vis == Visibility::Public { + if item.vis.node == VisibilityKind::Public { let matching = partial_match(mod_camel, &item_camel); let rmatching = partial_rmatch(mod_camel, &item_camel); let nchars = mod_camel.chars().count(); @@ -284,8 +284,8 @@ impl EarlyLintPass for EnumVariantNames { } } if let ItemKind::Enum(ref def, _) = item.node { - let lint = match item.vis { - Visibility::Public => PUB_ENUM_VARIANT_NAMES, + let lint = match item.vis.node { + VisibilityKind::Public => PUB_ENUM_VARIANT_NAMES, _ => ENUM_VARIANT_NAMES, }; check_variant(cx, self.threshold, def, &item_name, item_name_chars, item.span, lint);