diff --git a/src/head/head.rs b/src/head/head.rs index 8f7f0d26f..4e1d758be 100644 --- a/src/head/head.rs +++ b/src/head/head.rs @@ -16,7 +16,7 @@ extern crate getopts; use std::char; use std::io::{stdin}; -use std::io::BufferedReader; +use std::io::{BufferedReader, BytesReader}; use std::io::fs::File; use std::path::Path; use std::str::from_utf8; diff --git a/src/tail/tail.rs b/src/tail/tail.rs index 99533d515..5836d80f3 100644 --- a/src/tail/tail.rs +++ b/src/tail/tail.rs @@ -15,12 +15,11 @@ extern crate getopts; use std::char; use std::io::{stdin}; -use std::io::BufferedReader; +use std::io::{BufferedReader, BytesReader}; use std::io::fs::File; use std::path::Path; use std::str::from_utf8; use getopts::{optopt, optflag, getopts, usage}; -use std::collections::Deque; use std::collections::ringbuf::RingBuf; use std::io::timer::sleep; use std::time::duration::Duration; diff --git a/src/uutils/uutils.rs b/src/uutils/uutils.rs index da3d59346..26b4796da 100644 --- a/src/uutils/uutils.rs +++ b/src/uutils/uutils.rs @@ -46,7 +46,7 @@ fn main() { let binary = Path::new(args[0].as_slice()); let binary_as_util = binary.filename_str().unwrap(); - match umap.find_equiv(&binary_as_util) { + match umap.find_equiv(binary_as_util) { Some(&uumain) => { os::set_exit_status(uumain(args)); return @@ -70,7 +70,7 @@ fn main() { args.remove(0); let util = args[0].as_slice(); - match umap.find_equiv(&util) { + match umap.find_equiv(util) { Some(&uumain) => { os::set_exit_status(uumain(args.clone())); return @@ -80,7 +80,7 @@ fn main() { // see if they want help on a specific util if args.len() >= 2 { let util = args[1].as_slice(); - match umap.find_equiv(&util) { + match umap.find_equiv(util) { Some(&uumain) => { os::set_exit_status(uumain(vec![util.to_string(), "--help".to_string()])); return