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:
commit
792bf557bb
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
|
||||
}
|
||||
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
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue