1
Fork 0
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:
Sylvestre Ledru 2023-12-16 09:40:38 +01:00
parent ec35d9ea93
commit 01000a37a3
2 changed files with 2 additions and 2 deletions

View file

@ -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
} }

View file

@ -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,