From 25232c36974d9890afcd433ca34e49fd9becaee5 Mon Sep 17 00:00:00 2001 From: Michael Gehring Date: Tue, 3 Feb 2015 23:59:48 +0100 Subject: [PATCH] Fix warnings --- src/nproc/nproc.rs | 2 +- src/sort/sort.rs | 2 +- src/tail/tail.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nproc/nproc.rs b/src/nproc/nproc.rs index aec64328d..94807d114 100644 --- a/src/nproc/nproc.rs +++ b/src/nproc/nproc.rs @@ -67,7 +67,7 @@ pub fn uumain(args: Vec) -> isize { ignore += match os::getenv("OMP_NUM_THREADS") { Some(threadstr) => match threadstr.parse() { Ok(num) => num, - Err(e)=> 0 + Err(_)=> 0 }, None => 0 }; diff --git a/src/sort/sort.rs b/src/sort/sort.rs index 14091e9b9..318342cb5 100644 --- a/src/sort/sort.rs +++ b/src/sort/sort.rs @@ -146,7 +146,7 @@ fn frac_compare(a: &String, b: &String) -> Ordering { } #[inline(always)] -fn print_sorted>(mut iter: T) where S: std::fmt::Display { +fn print_sorted>(iter: T) where S: std::fmt::Display { for line in iter { print!("{}", line); } diff --git a/src/tail/tail.rs b/src/tail/tail.rs index 8a2682c24..ccaac02fe 100644 --- a/src/tail/tail.rs +++ b/src/tail/tail.rs @@ -242,7 +242,7 @@ macro_rules! tail_impl ( // count lines/chars. When reaching the end of file, output the data in the // ringbuf. let mut ringbuf: RingBuf<$kind> = RingBuf::new(); - let mut data = $reader.$kindfn().skip( + let data = $reader.$kindfn().skip( if $beginning { let temp = $count; $count = ::std::usize::MAX;