mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-04 15:07:47 +00:00
refactor/polish ~ fix cargo clippy
complaints (fatal/unneeded drop)
This commit is contained in:
parent
181c9d6cae
commit
662db61336
2 changed files with 0 additions and 2 deletions
|
@ -228,7 +228,6 @@ fn shuf_bytes(
|
||||||
len >>= 1;
|
len >>= 1;
|
||||||
len_mod <<= 1;
|
len_mod <<= 1;
|
||||||
}
|
}
|
||||||
drop(len);
|
|
||||||
|
|
||||||
let mut count = count;
|
let mut count = count;
|
||||||
while count > 0 && !input.is_empty() {
|
while count > 0 && !input.is_empty() {
|
||||||
|
|
|
@ -126,7 +126,6 @@ fn tac(filenames: Vec<String>, before: bool, _: bool, separator: &str) {
|
||||||
i += 1;
|
i += 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
drop(i);
|
|
||||||
|
|
||||||
// if there isn't a separator at the end of the file, fake it
|
// if there isn't a separator at the end of the file, fake it
|
||||||
if offsets.is_empty() || *offsets.last().unwrap() < data.len() - slen {
|
if offsets.is_empty() || *offsets.last().unwrap() < data.len() - slen {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue