@@ -38,15 +38,15 @@ pub enum Direction {
38
38
}
39
39
40
40
impl Direction {
41
- pub fn from_protobuf ( direction : & PbDirection ) -> Self {
41
+ fn from_protobuf ( direction : & PbDirection ) -> Self {
42
42
match direction {
43
43
PbDirection :: Ascending => Self :: Ascending ,
44
44
PbDirection :: Descending => Self :: Descending ,
45
45
PbDirection :: Unspecified => unreachable ! ( ) ,
46
46
}
47
47
}
48
48
49
- pub fn to_protobuf ( self ) -> PbDirection {
49
+ fn to_protobuf ( self ) -> PbDirection {
50
50
match self {
51
51
Self :: Ascending => PbDirection :: Ascending ,
52
52
Self :: Descending => PbDirection :: Descending ,
@@ -74,15 +74,15 @@ enum NullsAre {
74
74
}
75
75
76
76
impl NullsAre {
77
- pub fn from_protobuf ( nulls_are : & PbNullsAre ) -> Self {
77
+ fn from_protobuf ( nulls_are : & PbNullsAre ) -> Self {
78
78
match nulls_are {
79
79
PbNullsAre :: Largest => Self :: Largest ,
80
80
PbNullsAre :: Smallest => Self :: Smallest ,
81
81
PbNullsAre :: Unspecified => unreachable ! ( ) ,
82
82
}
83
83
}
84
84
85
- pub fn to_protobuf ( self ) -> PbNullsAre {
85
+ fn to_protobuf ( self ) -> PbNullsAre {
86
86
match self {
87
87
Self :: Largest => PbNullsAre :: Largest ,
88
88
Self :: Smallest => PbNullsAre :: Smallest ,
0 commit comments