This commit is contained in:
Oliver Schneider
2018-07-02 19:07:12 +02:00
parent 41972f89dc
commit 141f79f844
4 changed files with 13 additions and 13 deletions

View File

@@ -44,7 +44,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for EnumGlobUse {
impl EnumGlobUse {
fn lint_item(&self, cx: &LateContext, item: &Item) {
if item.vis == Visibility::Public {
if item.vis.node == VisibilityKind::Public {
return; // re-exports are fine
}
if let ItemUse(ref path, UseKind::Glob) = item.node {