1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-01 13:37:48 +00:00

Fix warnings

This commit is contained in:
Michael Gehring 2015-02-03 23:59:48 +01:00
parent 3eb5a814a3
commit 25232c3697
3 changed files with 3 additions and 3 deletions

View file

@ -67,7 +67,7 @@ pub fn uumain(args: Vec<String>) -> isize {
ignore += match os::getenv("OMP_NUM_THREADS") { ignore += match os::getenv("OMP_NUM_THREADS") {
Some(threadstr) => match threadstr.parse() { Some(threadstr) => match threadstr.parse() {
Ok(num) => num, Ok(num) => num,
Err(e)=> 0 Err(_)=> 0
}, },
None => 0 None => 0
}; };

View file

@ -146,7 +146,7 @@ fn frac_compare(a: &String, b: &String) -> Ordering {
} }
#[inline(always)] #[inline(always)]
fn print_sorted<S, T: Iterator<Item=S>>(mut iter: T) where S: std::fmt::Display { fn print_sorted<S, T: Iterator<Item=S>>(iter: T) where S: std::fmt::Display {
for line in iter { for line in iter {
print!("{}", line); print!("{}", line);
} }

View file

@ -242,7 +242,7 @@ macro_rules! tail_impl (
// count lines/chars. When reaching the end of file, output the data in the // count lines/chars. When reaching the end of file, output the data in the
// ringbuf. // ringbuf.
let mut ringbuf: RingBuf<$kind> = RingBuf::new(); let mut ringbuf: RingBuf<$kind> = RingBuf::new();
let mut data = $reader.$kindfn().skip( let data = $reader.$kindfn().skip(
if $beginning { if $beginning {
let temp = $count; let temp = $count;
$count = ::std::usize::MAX; $count = ::std::usize::MAX;