File tree 2 files changed +5
-8
lines changed
2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -346,11 +346,9 @@ impl Cli {
346
346
347
347
let ascii_input = matches. value_of ( "ascii-input" ) . map ( String :: from) ;
348
348
349
- let ascii_language = if let Some ( ascii_language) = matches. value_of ( "ascii-language" ) {
350
- Some ( Language :: from_str ( & ascii_language. to_lowercase ( ) ) . unwrap ( ) )
351
- } else {
352
- None
353
- } ;
349
+ let ascii_language = matches
350
+ . value_of ( "ascii-language" )
351
+ . map ( |ascii_language| Language :: from_str ( & ascii_language. to_lowercase ( ) ) . unwrap ( ) ) ;
354
352
355
353
let ascii_colors = if let Some ( values) = matches. values_of ( "ascii-colors" ) {
356
354
values. map ( String :: from) . collect ( )
@@ -377,7 +375,6 @@ impl Cli {
377
375
. value_of ( "no-bots" )
378
376
. map_or ( Regex :: from_str ( r"\[bot\]" ) . unwrap ( ) , |s| Regex :: from_str ( s) . unwrap ( ) )
379
377
} ) ;
380
-
381
378
Ok ( Cli {
382
379
repo_path,
383
380
ascii_input,
@@ -397,8 +394,8 @@ impl Cli {
397
394
print_package_managers,
398
395
output,
399
396
true_color,
400
- text_colors,
401
397
art_off,
398
+ text_colors,
402
399
iso_time,
403
400
show_email,
404
401
} )
Original file line number Diff line number Diff line change @@ -255,8 +255,8 @@ impl Info {
255
255
repo_url,
256
256
number_of_commits,
257
257
lines_of_code,
258
- repo_size,
259
258
file_count,
259
+ repo_size,
260
260
license,
261
261
dominant_language,
262
262
ascii_colors,
You can’t perform that action at this time.
0 commit comments