File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -407,18 +407,20 @@ impl<'a> Deserialize<'a> for Time {
407
407
/// The format used when serializing and deserializing a human-readable `UtcOffset`.
408
408
#[ cfg( feature = "parsing" ) ]
409
409
const UTC_OFFSET_FORMAT : & [ BorrowedFormatItem < ' _ > ] = & [
410
- BorrowedFormatItem :: Component ( Component :: OffsetHour ( {
410
+ BorrowedFormatItem :: Component ( Component :: OffsetHour ( const {
411
411
let mut m = modifier:: OffsetHour :: default ( ) ;
412
412
m. sign_is_mandatory = true ;
413
413
m
414
414
} ) ) ,
415
415
BorrowedFormatItem :: Optional ( & BorrowedFormatItem :: Compound ( & [
416
416
BorrowedFormatItem :: Literal ( b":" ) ,
417
- BorrowedFormatItem :: Component ( Component :: OffsetMinute ( modifier:: OffsetMinute :: default ( ) ) ) ,
417
+ BorrowedFormatItem :: Component ( Component :: OffsetMinute (
418
+ const { modifier:: OffsetMinute :: default ( ) } ,
419
+ ) ) ,
418
420
BorrowedFormatItem :: Optional ( & BorrowedFormatItem :: Compound ( & [
419
421
BorrowedFormatItem :: Literal ( b":" ) ,
420
422
BorrowedFormatItem :: Component ( Component :: OffsetSecond (
421
- modifier:: OffsetSecond :: default ( ) ,
423
+ const { modifier:: OffsetSecond :: default ( ) } ,
422
424
) ) ,
423
425
] ) ) ,
424
426
] ) ) ,
You can’t perform that action at this time.
0 commit comments