Fix pub(self) visibility?

Clippy complained about it and it seems wrong
This commit is contained in:
Diana 2020-05-01 12:09:47 -04:00
parent a5f2b16366
commit 375dd18dc0

View file

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