mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-04 15:07:47 +00:00
refactor/polish ~ fix cargo clippy
complaints (collapse equal if blocks)
This commit is contained in:
parent
b003d55fe1
commit
2931c808b6
1 changed files with 1 additions and 3 deletions
|
@ -389,9 +389,7 @@ Try '{} --help' for more information.",
|
||||||
let (_, len) = iter.size_hint();
|
let (_, len) = iter.size_hint();
|
||||||
let len = len.unwrap();
|
let len = len.unwrap();
|
||||||
for (index, stat) in iter.enumerate() {
|
for (index, stat) in iter.enumerate() {
|
||||||
let size = if matches.opt_present("apparent-size") {
|
let size = if matches.opt_present("apparent-size") || matches.opt_present("b") {
|
||||||
stat.size
|
|
||||||
} else if matches.opt_present("b") {
|
|
||||||
stat.size
|
stat.size
|
||||||
} else {
|
} else {
|
||||||
// C's stat is such that each block is assume to be 512 bytes
|
// C's stat is such that each block is assume to be 512 bytes
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue