Skip to content

Commit

Permalink
Merge pull request #5655 from sylvestre/clippy
Browse files Browse the repository at this point in the history
fix two minor clippy warnings
  • Loading branch information
cakebaker authored Dec 16, 2023
2 parents 98625b5 + 01000a3 commit 792bf55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/uu/dd/src/dd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion src/uu/tr/src/tr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 792bf55

Please sign in to comment.