1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-01 21:47:46 +00:00

collections::RingBuf -> collections::VecDeque

This commit is contained in:
Michael Gehring 2015-02-22 10:29:28 +01:00
parent 80f9ef08d2
commit b6ff2aeeae

View file

@ -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;