Skip to content

Commit 0b59be5

Browse files
Merge #4247
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>
2 parents a5f2b16 + 375dd18 commit 0b59be5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/ra_syntax/src/ast/extensions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ impl ast::Visibility {
407407
} else if self.super_token().is_some() {
408408
VisibilityKind::PubSuper
409409
} else if self.self_token().is_some() {
410-
VisibilityKind::PubSuper
410+
VisibilityKind::PubSelf
411411
} else {
412412
VisibilityKind::Pub
413413
}

0 commit comments

Comments
 (0)