Skip to content

Commit 70f28f1

Browse files
stroxlerfacebook-github-bot
authored andcommitted
Make ClassFieldInner private
Summary: This shouldn't be public - anyone trying to access it really ought to be defining helper methods in *this* module, in order to not break up modularity and make refactors challenging (which is exactly what I've been doing in this stack - moving use cases that were reaching into the guts into helper methods). Reviewed By: grievejia Differential Revision: D70111383 fbshipit-source-id: da96f8978c40f83d774efdc3080e23548261b94a
1 parent ae18b30 commit 70f28f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyre2/pyre2/lib/alt/class/class_field.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ impl ClassFieldInitialization {
7373
/// know whether it is initialized in the class body in order to determine
7474
/// both visibility rules and whether method binding should be performed.
7575
#[derive(Debug, Clone, PartialEq, Eq)]
76-
pub struct ClassField(pub ClassFieldInner);
76+
pub struct ClassField(ClassFieldInner);
7777

7878
#[derive(Debug, Clone, PartialEq, Eq)]
79-
pub enum ClassFieldInner {
79+
enum ClassFieldInner {
8080
Simple {
8181
ty: Type,
8282
range: Option<TextRange>,

0 commit comments

Comments
 (0)