We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 47bb77f + 44ac87a commit 042f262Copy full SHA for 042f262
tree/ls.rs
@@ -419,20 +419,16 @@ impl Config {
419
MULTI_COLUMN | STREAM_OUTPUT_FORMAT | MUTI_COLUMN_ACROSS => {
420
long_format_state.push(false);
421
}
422
- ONE_ENTRY_PER_LINE => loop {
+ ONE_ENTRY_PER_LINE => {
423
// Remove any `false` that was added by -C, -m or -x until
424
// a `true` is reached or the vec is empty
425
- match long_format_state.last().copied() {
426
- Some(enabled) => {
427
- if enabled {
428
- break;
429
- } else {
430
- long_format_state.pop();
431
- }
+ while let Some(enabled) = long_format_state.last().copied() {
+ if enabled {
+ break;
432
433
- None => break,
+ long_format_state.pop();
434
435
- },
+ }
436
_ => unreachable!(),
437
438
0 commit comments