4247: Fix pub(self) visibility? r=matklad a=DianaNites

Clippy complained about it and it seems wrong, copy paste error?

Co-authored-by: Diana <5275194+DianaNites@users.noreply.github.com>
This commit is contained in:
bors[bot] 2020-05-01 16:19:14 +00:00 committed by GitHub
commit 0b59be5747
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -407,7 +407,7 @@ impl ast::Visibility {
} else if self.super_token().is_some() { } else if self.super_token().is_some() {
VisibilityKind::PubSuper VisibilityKind::PubSuper
} else if self.self_token().is_some() { } else if self.self_token().is_some() {
VisibilityKind::PubSuper VisibilityKind::PubSelf
} else { } else {
VisibilityKind::Pub VisibilityKind::Pub
} }