dust
dust copied to clipboard
Lots of code cleanup
- Try to use iterator adapters and collect in various places, where possible. This especially benefits
draw_it. - Try to use
.mapand other similar methods onOptions andResults, where possible - Replaced nearly all
clones with reference-based equivalents - Summarizing nodes by file extension is now much more efficient (significantly fewer allocations)
PartialOrdandPartialEqimplementations onNodeandDisplayNodenow agree with each other (it's no longer possible to construct aNodefor whichnode1 != node2 && !(node1 < node2) && !(node1 > node2)).- Replace
#[cfg(...)]function definitions with simpler ifcfg!(...)equivalents- The optimized code is the same and this reduces maintenance burden of keeping signatures synchronized
- Simplify CLI
Valueshandling by taking advantage of Values::default - Various spelling corrections in comments
- Replace (
sort,reverse) withsort_by
I 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.