@@ -409,56 +409,37 @@ impl Modifiers {
409409 break ;
410410 }
411411
412- #[ allow( clippy:: unnested_or_patterns) ]
413412 match ( component_name, modifier) {
414- ( b"day" , b"padding:space" )
415- | ( b"hour" , b"padding:space" )
416- | ( b"minute" , b"padding:space" )
417- | ( b"month" , b"padding:space" )
418- | ( b"offset_hour" , b"padding:space" )
419- | ( b"offset_minute" , b"padding:space" )
420- | ( b"offset_second" , b"padding:space" )
421- | ( b"ordinal" , b"padding:space" )
422- | ( b"second" , b"padding:space" )
423- | ( b"week_number" , b"padding:space" )
424- | ( b"year" , b"padding:space" ) => modifiers. padding = Some ( Padding :: Space ) ,
425- ( b"day" , b"padding:zero" )
426- | ( b"hour" , b"padding:zero" )
427- | ( b"minute" , b"padding:zero" )
428- | ( b"month" , b"padding:zero" )
429- | ( b"offset_hour" , b"padding:zero" )
430- | ( b"offset_minute" , b"padding:zero" )
431- | ( b"offset_second" , b"padding:zero" )
432- | ( b"ordinal" , b"padding:zero" )
433- | ( b"second" , b"padding:zero" )
434- | ( b"week_number" , b"padding:zero" )
435- | ( b"year" , b"padding:zero" ) => modifiers. padding = Some ( Padding :: Zero ) ,
436- ( b"day" , b"padding:none" )
437- | ( b"hour" , b"padding:none" )
438- | ( b"minute" , b"padding:none" )
439- | ( b"month" , b"padding:none" )
440- | ( b"offset_hour" , b"padding:none" )
441- | ( b"offset_minute" , b"padding:none" )
442- | ( b"offset_second" , b"padding:none" )
443- | ( b"ordinal" , b"padding:none" )
444- | ( b"second" , b"padding:none" )
445- | ( b"week_number" , b"padding:none" )
446- | ( b"year" , b"padding:none" ) => modifiers. padding = Some ( Padding :: None ) ,
413+ (
414+ b"day" | b"hour" | b"minute" | b"month" | b"offset_hour" | b"offset_minute"
415+ | b"offset_second" | b"ordinal" | b"second" | b"week_number" | b"year" ,
416+ b"padding:space" ,
417+ ) => modifiers. padding = Some ( Padding :: Space ) ,
418+ (
419+ b"day" | b"hour" | b"minute" | b"month" | b"offset_hour" | b"offset_minute"
420+ | b"offset_second" | b"ordinal" | b"second" | b"week_number" | b"year" ,
421+ b"padding:zero" ,
422+ ) => modifiers. padding = Some ( Padding :: Zero ) ,
423+ (
424+ b"day" | b"hour" | b"minute" | b"month" | b"offset_hour" | b"offset_minute"
425+ | b"offset_second" | b"ordinal" | b"second" | b"week_number" | b"year" ,
426+ b"padding:none" ,
427+ ) => modifiers. padding = Some ( Padding :: None ) ,
447428 ( b"hour" , b"repr:24" ) => modifiers. hour_is_12_hour_clock = Some ( false ) ,
448429 ( b"hour" , b"repr:12" ) => modifiers. hour_is_12_hour_clock = Some ( true ) ,
449- ( b"month" , b"case_sensitive:true" )
450- | ( b"period" , b" case_sensitive: true" )
451- | ( b"weekday" , b"case_sensitive:true" ) => modifiers . case_sensitive = Some ( true ) ,
452- ( b"month" , b"case_sensitive:false" )
453- | ( b"period" , b" case_sensitive: false" )
454- | ( b"weekday" , b"case_sensitive:false" ) => modifiers . case_sensitive = Some ( false ) ,
430+ ( b"month" | b"period" | b"weekday" , b"case_sensitive:true" ) => {
431+ modifiers . case_sensitive = Some ( true )
432+ }
433+ ( b"month" | b"period" | b"weekday" , b"case_sensitive:false" ) => {
434+ modifiers . case_sensitive = Some ( false )
435+ }
455436 ( b"month" , b"repr:numerical" ) => modifiers. month_repr = Some ( MonthRepr :: Numerical ) ,
456437 ( b"month" , b"repr:long" ) => modifiers. month_repr = Some ( MonthRepr :: Long ) ,
457438 ( b"month" , b"repr:short" ) => modifiers. month_repr = Some ( MonthRepr :: Short ) ,
458- ( b"offset_hour" , b"sign:automatic" ) | ( b"year" , b"sign:automatic" ) => {
439+ ( b"offset_hour" | b"year" , b"sign:automatic" ) => {
459440 modifiers. sign_is_mandatory = Some ( false ) ;
460441 }
461- ( b"offset_hour" , b"sign:mandatory" ) | ( b"year" , b"sign:mandatory" ) => {
442+ ( b"offset_hour" | b"year" , b"sign:mandatory" ) => {
462443 modifiers. sign_is_mandatory = Some ( true ) ;
463444 }
464445 ( b"period" , b"case:upper" ) => modifiers. period_is_uppercase = Some ( true ) ,
0 commit comments