From b6ff2aeeaebf8e9c08609983313a0482f2658ee4 Mon Sep 17 00:00:00 2001 From: Michael Gehring Date: Sun, 22 Feb 2015 10:29:28 +0100 Subject: [PATCH] collections::RingBuf -> collections::VecDeque --- src/tail/tail.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tail/tail.rs b/src/tail/tail.rs index 8fa4d69fa..1e27f521d 100644 --- a/src/tail/tail.rs +++ b/src/tail/tail.rs @@ -20,7 +20,7 @@ use std::old_io::fs::File; use std::old_path::Path; use std::str::from_utf8; use getopts::{optopt, optflag, getopts, usage}; -use std::collections::ring_buf::RingBuf; +use std::collections::VecDeque; use std::old_io::timer::sleep; use std::time::duration::Duration; @@ -241,7 +241,7 @@ macro_rules! tail_impl ( // read through each line and store them in a ringbuffer that always contains // count lines/chars. When reaching the end of file, output the data in the // ringbuf. - let mut ringbuf: RingBuf<$kind> = RingBuf::new(); + let mut ringbuf: VecDeque<$kind> = VecDeque::new(); let data = $reader.$kindfn().skip( if $beginning { let temp = $count;