mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
[PR #232] [MERGED] Lots of code cleanup #371
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/bootandy/dust/pull/232
Author: @Lucretiel
Created: 7/31/2022
Status: ✅ Merged
Merged: 8/20/2022
Merged by: @bootandy
Base:
master← Head:cleanup📝 Commits (3)
0cdb7c1Lots of code cleanupfcf457bget_new_rootno longer panics if there are 0 nodes91ea8c9Use correct error code type📊 Changes
11 files changed (+294 additions, -305 deletions)
View changed files
📝
src/dir_walker.rs(+29 -30)📝
src/display.rs(+33 -19)📝
src/display_node.rs(+7 -29)📝
src/filter.rs(+72 -61)📝
src/main.rs(+91 -102)📝
src/node.rs(+28 -32)📝
src/platform.rs(+7 -7)📝
src/utils.rs(+6 -9)📝
tests/test_exact_output.rs(+8 -11)📝
tests/test_flags.rs(+1 -1)📝
tests/tests_symlinks.rs(+12 -4)📄 Description
draw_it..mapand other similar methods onOptions andResults, where possibleclones with reference-based equivalentsPartialOrdandPartialEqimplementations onNodeandDisplayNodenow agree with each other (it's no longer possible to construct aNodefor whichnode1 != node2 && !(node1 < node2) && !(node1 > node2)).#[cfg(...)]function definitions with simpler ifcfg!(...)equivalentsValueshandling by taking advantage of Values::defaultsort,reverse) withsort_byI can split this into several PRs if you'd like, but each change was so small that it was easier to put them all together.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.