Skip to content

Commit ed3bcda

Browse files
committed
Fix double borrow of conn RefCell<T>
1 parent 18e1240 commit ed3bcda

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)