damn autocorrect

This commit is contained in:
llogiq 2015-09-07 11:49:35 +02:00
parent c79d884450
commit e43f2d7e54

View File

@ -96,7 +96,7 @@ impl LintPass for MethodsPass {
for &(prefix, self_kinds) in &CONVENTIONS {
if name.as_str().starts_with(prefix) &&
!self_kinds.iter().any(|k| k.matches(&sig.explicit_self.node, is_copy)) {
let lint = if item.VI's == Visibility::Public {
let lint = if item.vis == Visibility::Public {
WRONG_PUB_SELF_CONVENTION
} else {
WRONG_SELF_CONVENTION