Skip to content

Commit ed81cea

Browse files
committed
Update for unused field lint
1 parent 2db1d47 commit ed81cea

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,7 +1088,7 @@ impl<'conn> PostgresTransaction<'conn> {
10881088
check_desync!(self.conn);
10891089
stmt.lazy_query(row_limit, params).map(|result| {
10901090
PostgresLazyRows {
1091-
trans: self,
1091+
_trans: self,
10921092
result: result
10931093
}
10941094
})
@@ -1520,7 +1520,7 @@ impl<'a> RowIndex for &'a str {
15201520
/// A lazily-loaded iterator over the resulting rows of a query
15211521
pub struct PostgresLazyRows<'trans, 'stmt> {
15221522
result: PostgresRows<'stmt>,
1523-
trans: &'trans PostgresTransaction<'trans>,
1523+
_trans: &'trans PostgresTransaction<'trans>,
15241524
}
15251525

15261526
impl<'trans, 'stmt> PostgresLazyRows<'trans, 'stmt> {

src/message.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ pub enum BackendMessage {
5252
ParseComplete,
5353
PortalSuspended,
5454
ReadyForQuery {
55-
pub state: u8
55+
pub _state: u8
5656
},
5757
RowDescription {
5858
pub descriptions: Vec<RowDescriptionEntry>
@@ -287,7 +287,7 @@ impl<R: Reader> ReadMessage for R {
287287
},
288288
't' => try!(read_parameter_description(&mut buf)),
289289
'T' => try!(read_row_description(&mut buf)),
290-
'Z' => ReadyForQuery { state: try!(buf.read_u8()) },
290+
'Z' => ReadyForQuery { _state: try!(buf.read_u8()) },
291291
ident => fail!("Unknown message identifier `{}`", ident)
292292
};
293293
Ok(ret)

0 commit comments

Comments
 (0)