diff --git a/src/lib.rs b/src/lib.rs index a21b98c5..ce41a231 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1088,7 +1088,7 @@ impl<'conn> PostgresTransaction<'conn> { check_desync!(self.conn); stmt.lazy_query(row_limit, params).map(|result| { PostgresLazyRows { - trans: self, + _trans: self, result: result } }) @@ -1520,7 +1520,7 @@ impl<'a> RowIndex for &'a str { /// A lazily-loaded iterator over the resulting rows of a query pub struct PostgresLazyRows<'trans, 'stmt> { result: PostgresRows<'stmt>, - trans: &'trans PostgresTransaction<'trans>, + _trans: &'trans PostgresTransaction<'trans>, } impl<'trans, 'stmt> PostgresLazyRows<'trans, 'stmt> { diff --git a/src/message.rs b/src/message.rs index c15f2271..f028e8a4 100644 --- a/src/message.rs +++ b/src/message.rs @@ -52,7 +52,7 @@ pub enum BackendMessage { ParseComplete, PortalSuspended, ReadyForQuery { - pub state: u8 + pub _state: u8 }, RowDescription { pub descriptions: Vec @@ -287,7 +287,7 @@ impl ReadMessage for R { }, 't' => try!(read_parameter_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) }; Ok(ret)