@@ -15,10 +15,7 @@ use parallel_disk_usage::{
1515} ;
1616use pipe_trait:: Pipe ;
1717use pretty_assertions:: assert_eq;
18- use std:: {
19- convert:: TryInto ,
20- process:: { Command , Stdio } ,
21- } ;
18+ use std:: process:: { Command , Stdio } ;
2219
2320fn stdio ( command : Command ) -> Command {
2421 command
@@ -55,7 +52,6 @@ fn total_width() {
5552 direction : Direction :: BottomUp ,
5653 bar_alignment : BarAlignment :: Left ,
5754 column_width_distribution : ColumnWidthDistribution :: total ( 100 ) ,
58- max_depth : 10 . try_into ( ) . unwrap ( ) ,
5955 } ;
6056 let expected = format ! ( "{visualizer}" ) ;
6157 let expected = expected. trim_end ( ) ;
@@ -94,7 +90,6 @@ fn column_width() {
9490 direction : Direction :: BottomUp ,
9591 bar_alignment : BarAlignment :: Left ,
9692 column_width_distribution : ColumnWidthDistribution :: components ( 10 , 90 ) ,
97- max_depth : 10 . try_into ( ) . unwrap ( ) ,
9893 } ;
9994 let expected = format ! ( "{visualizer}" ) ;
10095 let expected = expected. trim_end ( ) ;
@@ -132,7 +127,6 @@ fn min_ratio_0() {
132127 direction : Direction :: BottomUp ,
133128 bar_alignment : BarAlignment :: Left ,
134129 column_width_distribution : ColumnWidthDistribution :: total ( 100 ) ,
135- max_depth : 10 . try_into ( ) . unwrap ( ) ,
136130 } ;
137131 let expected = format ! ( "{visualizer}" ) ;
138132 let expected = expected. trim_end ( ) ;
@@ -171,7 +165,6 @@ fn min_ratio() {
171165 direction : Direction :: BottomUp ,
172166 bar_alignment : BarAlignment :: Left ,
173167 column_width_distribution : ColumnWidthDistribution :: total ( 100 ) ,
174- max_depth : 10 . try_into ( ) . unwrap ( ) ,
175168 } ;
176169 let expected = format ! ( "{visualizer}" ) ;
177170 let expected = expected. trim_end ( ) ;
@@ -210,7 +203,6 @@ fn max_depth_2() {
210203 direction : Direction :: BottomUp ,
211204 bar_alignment : BarAlignment :: Left ,
212205 column_width_distribution : ColumnWidthDistribution :: total ( 100 ) ,
213- max_depth : 2 . try_into ( ) . unwrap ( ) ,
214206 } ;
215207 let expected = format ! ( "{visualizer}" ) ;
216208 let expected = expected. trim_end ( ) ;
@@ -249,7 +241,6 @@ fn max_depth_1() {
249241 direction : Direction :: BottomUp ,
250242 bar_alignment : BarAlignment :: Left ,
251243 column_width_distribution : ColumnWidthDistribution :: total ( 100 ) ,
252- max_depth : 1 . try_into ( ) . unwrap ( ) ,
253244 } ;
254245 let expected = format ! ( "{visualizer}" ) ;
255246 let expected = expected. trim_end ( ) ;
@@ -287,7 +278,6 @@ fn top_down() {
287278 direction : Direction :: TopDown ,
288279 bar_alignment : BarAlignment :: Left ,
289280 column_width_distribution : ColumnWidthDistribution :: total ( 100 ) ,
290- max_depth : 10 . try_into ( ) . unwrap ( ) ,
291281 } ;
292282 let expected = format ! ( "{visualizer}" ) ;
293283 let expected = expected. trim_end ( ) ;
@@ -325,7 +315,6 @@ fn align_right() {
325315 direction : Direction :: BottomUp ,
326316 bar_alignment : BarAlignment :: Right ,
327317 column_width_distribution : ColumnWidthDistribution :: total ( 100 ) ,
328- max_depth : 10 . try_into ( ) . unwrap ( ) ,
329318 } ;
330319 let expected = format ! ( "{visualizer}" ) ;
331320 let expected = expected. trim_end ( ) ;
@@ -363,7 +352,6 @@ fn quantity_apparent_size() {
363352 direction : Direction :: BottomUp ,
364353 bar_alignment : BarAlignment :: Left ,
365354 column_width_distribution : ColumnWidthDistribution :: total ( 100 ) ,
366- max_depth : 10 . try_into ( ) . unwrap ( ) ,
367355 } ;
368356 let expected = format ! ( "{visualizer}" ) ;
369357 let expected = expected. trim_end ( ) ;
@@ -402,7 +390,6 @@ fn quantity_block_size() {
402390 direction : Direction :: BottomUp ,
403391 bar_alignment : BarAlignment :: Left ,
404392 column_width_distribution : ColumnWidthDistribution :: total ( 100 ) ,
405- max_depth : 10 . try_into ( ) . unwrap ( ) ,
406393 } ;
407394 let expected = format ! ( "{visualizer}" ) ;
408395 let expected = expected. trim_end ( ) ;
@@ -441,7 +428,6 @@ fn quantity_block_count() {
441428 direction : Direction :: BottomUp ,
442429 bar_alignment : BarAlignment :: Left ,
443430 column_width_distribution : ColumnWidthDistribution :: total ( 100 ) ,
444- max_depth : 10 . try_into ( ) . unwrap ( ) ,
445431 } ;
446432 let expected = format ! ( "{visualizer}" ) ;
447433 let expected = expected. trim_end ( ) ;
@@ -481,7 +467,6 @@ fn bytes_format_plain() {
481467 direction : Direction :: BottomUp ,
482468 bar_alignment : BarAlignment :: Left ,
483469 column_width_distribution : ColumnWidthDistribution :: total ( 100 ) ,
484- max_depth : 10 . try_into ( ) . unwrap ( ) ,
485470 } ;
486471 let expected = format ! ( "{visualizer}" ) ;
487472 let expected = expected. trim_end ( ) ;
@@ -521,7 +506,6 @@ fn bytes_format_metric() {
521506 direction : Direction :: BottomUp ,
522507 bar_alignment : BarAlignment :: Left ,
523508 column_width_distribution : ColumnWidthDistribution :: total ( 100 ) ,
524- max_depth : 10 . try_into ( ) . unwrap ( ) ,
525509 } ;
526510 let expected = format ! ( "{visualizer}" ) ;
527511 let expected = expected. trim_end ( ) ;
@@ -561,7 +545,6 @@ fn bytes_format_binary() {
561545 direction : Direction :: BottomUp ,
562546 bar_alignment : BarAlignment :: Left ,
563547 column_width_distribution : ColumnWidthDistribution :: total ( 100 ) ,
564- max_depth : 10 . try_into ( ) . unwrap ( ) ,
565548 } ;
566549 let expected = format ! ( "{visualizer}" ) ;
567550 let expected = expected. trim_end ( ) ;
@@ -598,7 +581,6 @@ fn path_to_workspace() {
598581 direction : Direction :: BottomUp ,
599582 bar_alignment : BarAlignment :: Left ,
600583 column_width_distribution : ColumnWidthDistribution :: total ( 100 ) ,
601- max_depth : 10 . try_into ( ) . unwrap ( ) ,
602584 } ;
603585 let expected = format ! ( "{visualizer}" ) ;
604586 let expected = expected. trim_end ( ) ;
@@ -652,7 +634,6 @@ fn multiple_names() {
652634 direction : Direction :: BottomUp ,
653635 bar_alignment : BarAlignment :: Left ,
654636 column_width_distribution : ColumnWidthDistribution :: total ( 100 ) ,
655- max_depth : 10 . try_into ( ) . unwrap ( ) ,
656637 } ;
657638 let expected = format ! ( "{visualizer}" ) ;
658639 let expected = expected. trim_end ( ) ;
0 commit comments