From e98d6825ab611485b4bc47b2e33e6cf04d523178 Mon Sep 17 00:00:00 2001 From: Cody P Schafer Date: Fri, 20 Feb 2015 16:56:03 -0500 Subject: [PATCH] RingBuf is now VecDeque --- src/lib.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 60e03095..89ad5159 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -69,7 +69,7 @@ use serialize::hex::ToHex; use std::borrow::ToOwned; use std::cell::{Cell, RefCell}; use std::cmp::max; -use std::collections::{RingBuf, HashMap}; +use std::collections::{VecDeque, HashMap}; use std::fmt; use std::old_io::{BufferedStream, IoResult, IoError, IoErrorKind}; use std::old_io::net::ip::Port; @@ -392,7 +392,7 @@ struct CachedStatement { struct InnerConnection { stream: BufferedStream>, notice_handler: Box, - notifications: RingBuf, + notifications: VecDeque, cancel_data: CancelData, unknown_types: HashMap, cached_statements: HashMap, @@ -426,7 +426,7 @@ impl InnerConnection { stream: BufferedStream::new(stream), next_stmt_id: 0, notice_handler: Box::new(DefaultNoticeHandler), - notifications: RingBuf::new(), + notifications: VecDeque::new(), cancel_data: CancelData { process_id: 0, secret_key: 0 }, unknown_types: HashMap::new(), cached_statements: HashMap::new(), @@ -1374,7 +1374,7 @@ impl<'conn> Statement<'conn> { let mut result = Rows { stmt: self, - data: RingBuf::new(), + data: VecDeque::new(), }; let more_rows = try!(result.read_rows()); @@ -1563,7 +1563,7 @@ impl Column { /// An iterator over the resulting rows of a query. pub struct Rows<'stmt> { stmt: &'stmt Statement<'stmt>, - data: RingBuf>>>, + data: VecDeque>>>, } impl<'a> fmt::Debug for Rows<'a> {