File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed
Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -148,12 +148,14 @@ fn output_colored_path(
148148 let size_width = byte_format. width ( ) ;
149149 let path = path. as_ref ( ) . display ( ) ;
150150
151- let errors = ( num_errors != 0 )
152- . then ( || {
153- let plural_s = if num_errors > 1 { "s" } else { "" } ;
154- format ! ( " <{num_errors} IO Error{plural_s}>" )
155- } )
156- . unwrap_or_default ( ) ;
151+ let errors = if num_errors != 0 {
152+ format ! (
153+ " <{num_errors} IO Error{plural_s}>" ,
154+ plural_s = if num_errors > 1 { "s" } else { "" }
155+ )
156+ } else {
157+ "" . into ( )
158+ } ;
157159
158160 if let Some ( color) = path_color {
159161 writeln ! ( out, "{size:>size_width$} {}{errors}" , path. color( color) )
Original file line number Diff line number Diff line change @@ -474,8 +474,7 @@ impl MarkPane {
474474
475475pub fn calculate_size_and_count ( marked : & EntryMarkMap ) -> ( u128 , u64 ) {
476476 let entries: Vec < & EntryMark > = marked
477- . iter ( )
478- . map ( |( _k, v) | v)
477+ . values ( )
479478 . sorted_by ( |a, b| Ord :: cmp ( & a. path , & b. path ) )
480479 . collect ( ) ;
481480
You can’t perform that action at this time.
0 commit comments