Skip to content

Commit 945714b

Browse files
committed
Merge pull request rust-postgres#61 from mikedilger/fix_double_borrow
Fix double borrow of conn RefCell<T>
2 parents 58da48c + ed3bcda commit 945714b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,7 @@ impl<'conn> PostgresStatement<'conn> {
11111111
match try_pg!(conn.read_message_()) {
11121112
BindComplete => Ok(()),
11131113
ErrorResponse { fields } => {
1114-
try!(self.conn.wait_for_ready());
1114+
try!(conn.wait_for_ready());
11151115
Err(PgDbError(PostgresDbError::new(fields)))
11161116
}
11171117
_ => {

0 commit comments

Comments
 (0)