File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
components/calendar/tests Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -209,9 +209,11 @@ fn test_tricky_leap_months() {
209209 assert_eq ! ( duration1_actual, duration1) ;
210210
211211 // M05L + 1yr1mo = M07 (leap to common)
212- let mut duration2 = DateDuration :: default ( ) ;
213- duration2. years = 1 ;
214- duration2. months = 1 ;
212+ let duration2 = DateDuration {
213+ years : 1 ,
214+ months : 1 ,
215+ ..Default :: default ( )
216+ } ;
215217 let date3 = date2
216218 . try_added_with_options ( duration2, add_options)
217219 . unwrap ( ) ;
Original file line number Diff line number Diff line change 1616
1717icu::calendar::Date::try_from_fields#FnInStruct
1818icu::calendar::options::DateAddOptions#Struct
19- icu::calendar::options::DateFromFieldsOptions#Struct
2019icu::calendar::options::DateDifferenceOptions#Struct
20+ icu::calendar::options::DateFromFieldsOptions#Struct
2121icu::calendar::options::MissingFieldsStrategy#Enum
2222icu::calendar::options::Overflow#Enum
2323icu::calendar::types::DateFields#Struct
You can’t perform that action at this time.
0 commit comments