mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 19:17:43 +00:00
fix two minor clippy warnings
This commit is contained in:
parent
ec35d9ea93
commit
01000a37a3
2 changed files with 2 additions and 2 deletions
|
@ -1181,7 +1181,7 @@ fn calc_loop_bsize(
|
||||||
cmp::min(ideal_bsize as u64, rremain * ibs as u64) as usize
|
cmp::min(ideal_bsize as u64, rremain * ibs as u64) as usize
|
||||||
}
|
}
|
||||||
Some(Num::Bytes(bmax)) => {
|
Some(Num::Bytes(bmax)) => {
|
||||||
let bmax: u128 = (*bmax).try_into().unwrap();
|
let bmax: u128 = (*bmax).into();
|
||||||
let bremain: u128 = bmax - wstat.bytes_total;
|
let bremain: u128 = bmax - wstat.bytes_total;
|
||||||
cmp::min(ideal_bsize as u128, bremain) as usize
|
cmp::min(ideal_bsize as u128, bremain) as usize
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,7 +61,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(first) = sets.get(0) {
|
if let Some(first) = sets.first() {
|
||||||
if first.ends_with('\\') {
|
if first.ends_with('\\') {
|
||||||
show!(USimpleError::new(
|
show!(USimpleError::new(
|
||||||
0,
|
0,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue