1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 11:07:44 +00:00

Merge pull request #5655 from sylvestre/clippy

fix two minor clippy warnings
This commit is contained in:
Daniel Hofstetter 2023-12-16 13:45:35 +01:00 committed by GitHub
commit 792bf557bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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
}
Some(Num::Bytes(bmax)) => {
let bmax: u128 = (*bmax).try_into().unwrap();
let bmax: u128 = (*bmax).into();
let bremain: u128 = bmax - wstat.bytes_total;
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('\\') {
show!(USimpleError::new(
0,