Skip to content

Commit b458e85

Browse files
committed
Remove pub qualifiers on struct variant fields
1 parent a0888e4 commit b458e85

2 files changed

Lines changed: 45 additions & 45 deletions

File tree

src/error.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -414,9 +414,9 @@ pub enum ErrorPosition {
414414
/// A position in an internally generated query
415415
Internal {
416416
/// The byte position
417-
pub position: uint,
417+
position: uint,
418418
/// A query generated by the Postgres server
419-
pub query: String
419+
query: String
420420
}
421421
}
422422

@@ -546,9 +546,9 @@ pub enum Error {
546546
/// An incorrect number of parameters were bound to a statement
547547
PgWrongParamCount {
548548
/// The expected number of parameters
549-
pub expected: uint,
549+
expected: uint,
550550
/// The actual number of parameters
551-
pub actual: uint,
551+
actual: uint,
552552
},
553553
/// An attempt was made to convert between incompatible Rust and Postgres
554554
/// types

src/message.rs

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -12,54 +12,54 @@ pub enum BackendMessage {
1212
AuthenticationGSS,
1313
AuthenticationKerberosV5,
1414
AuthenticationMD5Password {
15-
pub salt: [u8, ..4]
15+
salt: [u8, ..4]
1616
},
1717
AuthenticationOk,
1818
AuthenticationSCMCredential,
1919
AuthenticationSSPI,
2020
BackendKeyData {
21-
pub process_id: u32,
22-
pub secret_key: u32
21+
process_id: u32,
22+
secret_key: u32
2323
},
2424
BindComplete,
2525
CloseComplete,
2626
CommandComplete {
27-
pub tag: String,
27+
tag: String,
2828
},
2929
CopyInResponse {
30-
pub format: u8,
31-
pub column_formats: Vec<u16>,
30+
format: u8,
31+
column_formats: Vec<u16>,
3232
},
3333
DataRow {
34-
pub row: Vec<Option<Vec<u8>>>
34+
row: Vec<Option<Vec<u8>>>
3535
},
3636
EmptyQueryResponse,
3737
ErrorResponse {
38-
pub fields: Vec<(u8, String)>
38+
fields: Vec<(u8, String)>
3939
},
4040
NoData,
4141
NoticeResponse {
42-
pub fields: Vec<(u8, String)>
42+
fields: Vec<(u8, String)>
4343
},
4444
NotificationResponse {
45-
pub pid: u32,
46-
pub channel: String,
47-
pub payload: String,
45+
pid: u32,
46+
channel: String,
47+
payload: String,
4848
},
4949
ParameterDescription {
50-
pub types: Vec<Oid>
50+
types: Vec<Oid>
5151
},
5252
ParameterStatus {
53-
pub parameter: String,
54-
pub value: String,
53+
parameter: String,
54+
value: String,
5555
},
5656
ParseComplete,
5757
PortalSuspended,
5858
ReadyForQuery {
59-
pub _state: u8
59+
_state: u8
6060
},
6161
RowDescription {
62-
pub descriptions: Vec<RowDescriptionEntry>
62+
descriptions: Vec<RowDescriptionEntry>
6363
}
6464
}
6565

@@ -75,53 +75,53 @@ pub struct RowDescriptionEntry {
7575

7676
pub enum FrontendMessage<'a> {
7777
Bind {
78-
pub portal: &'a str,
79-
pub statement: &'a str,
80-
pub formats: &'a [i16],
81-
pub values: &'a [Option<Vec<u8>>],
82-
pub result_formats: &'a [i16]
78+
portal: &'a str,
79+
statement: &'a str,
80+
formats: &'a [i16],
81+
values: &'a [Option<Vec<u8>>],
82+
result_formats: &'a [i16]
8383
},
8484
CancelRequest {
85-
pub code: u32,
86-
pub process_id: u32,
87-
pub secret_key: u32,
85+
code: u32,
86+
process_id: u32,
87+
secret_key: u32,
8888
},
8989
Close {
90-
pub variant: u8,
91-
pub name: &'a str
90+
variant: u8,
91+
name: &'a str
9292
},
9393
CopyData {
94-
pub data: &'a [u8],
94+
data: &'a [u8],
9595
},
9696
CopyDone,
9797
CopyFail {
98-
pub message: &'a str
98+
message: &'a str
9999
},
100100
Describe {
101-
pub variant: u8,
102-
pub name: &'a str
101+
variant: u8,
102+
name: &'a str
103103
},
104104
Execute {
105-
pub portal: &'a str,
106-
pub max_rows: i32
105+
portal: &'a str,
106+
max_rows: i32
107107
},
108108
Parse {
109-
pub name: &'a str,
110-
pub query: &'a str,
111-
pub param_types: &'a [Oid]
109+
name: &'a str,
110+
query: &'a str,
111+
param_types: &'a [Oid]
112112
},
113113
PasswordMessage {
114-
pub password: &'a str
114+
password: &'a str
115115
},
116116
Query {
117-
pub query: &'a str
117+
query: &'a str
118118
},
119119
SslRequest {
120-
pub code: u32
120+
code: u32
121121
},
122122
StartupMessage {
123-
pub version: u32,
124-
pub parameters: &'a [(String, String)]
123+
version: u32,
124+
parameters: &'a [(String, String)]
125125
},
126126
Sync,
127127
Terminate

0 commit comments

Comments
 (0)