Fix fallout
This commit is contained in:
@@ -232,7 +232,7 @@ impl EarlyLintPass for EnumVariantNames {
|
||||
if let Some(&(ref mod_name, ref mod_camel)) = self.modules.last() {
|
||||
// constants don't have surrounding modules
|
||||
if !mod_camel.is_empty() {
|
||||
if mod_name == &item_name {
|
||||
if *mod_name == item_name {
|
||||
if let ItemKind::Mod(..) = item.node {
|
||||
span_lint(cx,
|
||||
MODULE_INCEPTION,
|
||||
|
||||
Reference in New Issue
Block a user