mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-31 21:17:46 +00:00
Fix warnings
This commit is contained in:
parent
3eb5a814a3
commit
25232c3697
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
};
|
};
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue