Fix fallout

This commit is contained in:
Oliver Schneider
2017-03-09 10:58:31 +01:00
parent 5de367f793
commit d9e69a70df
19 changed files with 42 additions and 42 deletions

View File

@@ -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,