1
Fork 0
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:
Roy Ivy III 2019-12-20 10:45:07 -06:00
parent 181c9d6cae
commit 662db61336
2 changed files with 0 additions and 2 deletions

View file

@ -228,7 +228,6 @@ fn shuf_bytes(
len >>= 1;
len_mod <<= 1;
}
drop(len);
let mut count = count;
while count > 0 && !input.is_empty() {

View file

@ -126,7 +126,6 @@ fn tac(filenames: Vec<String>, before: bool, _: bool, separator: &str) {
i += 1;
}
}
drop(i);
// if there isn't a separator at the end of the file, fake it
if offsets.is_empty() || *offsets.last().unwrap() < data.len() - slen {