@@ -69,7 +69,7 @@ use serialize::hex::ToHex;
6969use std:: borrow:: ToOwned ;
7070use std:: cell:: { Cell , RefCell } ;
7171use std:: cmp:: max;
72- use std:: collections:: { RingBuf , HashMap } ;
72+ use std:: collections:: { VecDeque , HashMap } ;
7373use std:: fmt;
7474use std:: old_io:: { BufferedStream , IoResult , IoError , IoErrorKind } ;
7575use std:: old_io:: net:: ip:: Port ;
@@ -392,7 +392,7 @@ struct CachedStatement {
392392struct InnerConnection {
393393 stream : BufferedStream < MaybeSslStream < InternalStream > > ,
394394 notice_handler : Box < NoticeHandler > ,
395- notifications : RingBuf < Notification > ,
395+ notifications : VecDeque < Notification > ,
396396 cancel_data : CancelData ,
397397 unknown_types : HashMap < Oid , Type > ,
398398 cached_statements : HashMap < String , CachedStatement > ,
@@ -426,7 +426,7 @@ impl InnerConnection {
426426 stream : BufferedStream :: new ( stream) ,
427427 next_stmt_id : 0 ,
428428 notice_handler : Box :: new ( DefaultNoticeHandler ) ,
429- notifications : RingBuf :: new ( ) ,
429+ notifications : VecDeque :: new ( ) ,
430430 cancel_data : CancelData { process_id : 0 , secret_key : 0 } ,
431431 unknown_types : HashMap :: new ( ) ,
432432 cached_statements : HashMap :: new ( ) ,
@@ -1374,7 +1374,7 @@ impl<'conn> Statement<'conn> {
13741374
13751375 let mut result = Rows {
13761376 stmt : self ,
1377- data : RingBuf :: new ( ) ,
1377+ data : VecDeque :: new ( ) ,
13781378 } ;
13791379 let more_rows = try!( result. read_rows ( ) ) ;
13801380
@@ -1563,7 +1563,7 @@ impl Column {
15631563/// An iterator over the resulting rows of a query.
15641564pub struct Rows < ' stmt > {
15651565 stmt : & ' stmt Statement < ' stmt > ,
1566- data : RingBuf < Vec < Option < Vec < u8 > > > > ,
1566+ data : VecDeque < Vec < Option < Vec < u8 > > > > ,
15671567}
15681568
15691569impl < ' a > fmt:: Debug for Rows < ' a > {
0 commit comments