Update for unused field lint
This commit is contained in:
parent
2db1d477d2
commit
ed81ceadf2
@ -1088,7 +1088,7 @@ impl<'conn> PostgresTransaction<'conn> {
|
|||||||
check_desync!(self.conn);
|
check_desync!(self.conn);
|
||||||
stmt.lazy_query(row_limit, params).map(|result| {
|
stmt.lazy_query(row_limit, params).map(|result| {
|
||||||
PostgresLazyRows {
|
PostgresLazyRows {
|
||||||
trans: self,
|
_trans: self,
|
||||||
result: result
|
result: result
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -1520,7 +1520,7 @@ impl<'a> RowIndex for &'a str {
|
|||||||
/// A lazily-loaded iterator over the resulting rows of a query
|
/// A lazily-loaded iterator over the resulting rows of a query
|
||||||
pub struct PostgresLazyRows<'trans, 'stmt> {
|
pub struct PostgresLazyRows<'trans, 'stmt> {
|
||||||
result: PostgresRows<'stmt>,
|
result: PostgresRows<'stmt>,
|
||||||
trans: &'trans PostgresTransaction<'trans>,
|
_trans: &'trans PostgresTransaction<'trans>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'trans, 'stmt> PostgresLazyRows<'trans, 'stmt> {
|
impl<'trans, 'stmt> PostgresLazyRows<'trans, 'stmt> {
|
||||||
|
@ -52,7 +52,7 @@ pub enum BackendMessage {
|
|||||||
ParseComplete,
|
ParseComplete,
|
||||||
PortalSuspended,
|
PortalSuspended,
|
||||||
ReadyForQuery {
|
ReadyForQuery {
|
||||||
pub state: u8
|
pub _state: u8
|
||||||
},
|
},
|
||||||
RowDescription {
|
RowDescription {
|
||||||
pub descriptions: Vec<RowDescriptionEntry>
|
pub descriptions: Vec<RowDescriptionEntry>
|
||||||
@ -287,7 +287,7 @@ impl<R: Reader> ReadMessage for R {
|
|||||||
},
|
},
|
||||||
't' => try!(read_parameter_description(&mut buf)),
|
't' => try!(read_parameter_description(&mut buf)),
|
||||||
'T' => try!(read_row_description(&mut buf)),
|
'T' => try!(read_row_description(&mut buf)),
|
||||||
'Z' => ReadyForQuery { state: try!(buf.read_u8()) },
|
'Z' => ReadyForQuery { _state: try!(buf.read_u8()) },
|
||||||
ident => fail!("Unknown message identifier `{}`", ident)
|
ident => fail!("Unknown message identifier `{}`", ident)
|
||||||
};
|
};
|
||||||
Ok(ret)
|
Ok(ret)
|
||||||
|
Loading…
Reference in New Issue
Block a user