Remove deprecated method use

This commit is contained in:
Steven Fackler 2014-07-25 16:09:34 -07:00
parent cdaab78181
commit dc3b5d863b
2 changed files with 3 additions and 3 deletions

View File

@ -461,7 +461,7 @@ impl InnerPostgresConnection {
NoticeResponse { fields } =>
self.notice_handler.handle(PostgresDbError::new(fields)),
NotificationResponse { pid, channel, payload } =>
self.notifications.push_back(PostgresNotification {
self.notifications.push(PostgresNotification {
pid: pid,
channel: channel,
payload: payload
@ -1315,7 +1315,7 @@ impl<'stmt> PostgresRows<'stmt> {
self.more_rows = true;
break;
},
DataRow { row } => self.data.push_back(row),
DataRow { row } => self.data.push(row),
ErrorResponse { fields } => {
try!(self.stmt.conn.wait_for_ready());
return Err(PgDbError(PostgresDbError::new(fields)));

View File

@ -113,7 +113,7 @@ impl<T> ArrayBase<T> {
/// For example the one-dimensional array `[1,2]` would turn into
/// the two-dimensional array `[[1,2]]`.
pub fn wrap(&mut self, lower_bound: int) {
self.info.unshift(DimensionInfo {
self.info.insert(0, DimensionInfo {
len: 1,
lower_bound: lower_bound
})