@@ -12,7 +12,7 @@ use crate::{
1212 visualizer:: { BarAlignment , ColumnWidthDistribution , Direction , Visualizer } ,
1313} ;
1414use serde:: Serialize ;
15- use std:: { io:: stdout, iter:: once, num:: NonZeroUsize , path:: PathBuf } ;
15+ use std:: { io:: stdout, iter:: once, num:: NonZeroU64 , path:: PathBuf } ;
1616
1717/// The sub program of the main application.
1818pub struct Sub < Size , SizeGetter , Report >
3535 /// Distribution and number of characters/blocks can be placed in a line.
3636 pub column_width_distribution : ColumnWidthDistribution ,
3737 /// Maximum number of levels that should be visualized.
38- pub max_depth : NonZeroUsize ,
38+ pub max_depth : NonZeroU64 ,
3939 /// [Get the size](GetSize) of files/directories.
4040 pub size_getter : SizeGetter ,
4141 /// Reports measurement progress.
7676 reporter : & reporter,
7777 root,
7878 size_getter,
79- max_depth : max_depth. get ( ) as u64 ,
79+ max_depth : max_depth. get ( ) ,
8080 }
8181 . into ( )
8282 } ) ;
@@ -101,7 +101,7 @@ where
101101 OsStringDisplay :: os_string_from ( "(total)" ) ,
102102 Size :: default ( ) ,
103103 children,
104- max_depth. get ( ) as u64 ,
104+ max_depth. get ( ) ,
105105 )
106106 } ;
107107
0 commit comments