@@ -240,7 +240,7 @@ impl Display for ScheduleDayKind {
240240 }
241241}
242242
243- fn time_parser < ' s > ( input : & mut & ' s str ) -> PResult < NaiveTime > {
243+ fn time_parser ( input : & mut & str ) -> PResult < NaiveTime > {
244244 alt ( ( "2400" , take ( 4usize ) ) )
245245 . verify_map ( |time_str| match time_str {
246246 "2400" => Some ( MAX_TIME_INSTANT ) ,
@@ -249,7 +249,7 @@ fn time_parser<'s>(input: &mut &'s str) -> PResult<NaiveTime> {
249249 . parse_next ( input)
250250}
251251
252- fn time_range_parser < ' s > ( input : & mut & ' s str ) -> PResult < RangeInclusive < NaiveTime > > {
252+ fn time_range_parser ( input : & mut & str ) -> PResult < RangeInclusive < NaiveTime > > {
253253 seq ! (
254254 time_parser,
255255 _: "-" ,
@@ -259,7 +259,7 @@ fn time_range_parser<'s>(input: &mut &'s str) -> PResult<RangeInclusive<NaiveTim
259259 . parse_next ( input)
260260}
261261
262- fn schedule_day_kind_parser < ' s > ( input : & mut & ' s str ) -> PResult < ScheduleDayKind > {
262+ fn schedule_day_kind_parser ( input : & mut & str ) -> PResult < ScheduleDayKind > {
263263 alt ( (
264264 "C" . map ( |_| ScheduleDayKind :: Closed ) ,
265265 "O" . map ( |_| ScheduleDayKind :: Open ) ,
@@ -350,7 +350,7 @@ mod tests {
350350 fn test_parsing_holiday_day_schedule ( ) -> Result < ( ) > {
351351 let input = "0412/O" ;
352352 let expected = HolidayDaySchedule {
353- month : 04 ,
353+ month : 4 ,
354354 day : 12 ,
355355 kind : ScheduleDayKind :: Open ,
356356 } ;
@@ -360,7 +360,7 @@ mod tests {
360360
361361 let input = "0412/C" ;
362362 let expected = HolidayDaySchedule {
363- month : 04 ,
363+ month : 4 ,
364364 day : 12 ,
365365 kind : ScheduleDayKind :: Closed ,
366366 } ;
@@ -369,7 +369,7 @@ mod tests {
369369
370370 let input = "0412/1234-1347" ;
371371 let expected = HolidayDaySchedule {
372- month : 04 ,
372+ month : 4 ,
373373 day : 12 ,
374374 kind : ScheduleDayKind :: TimeRanges ( vec ! [
375375 NaiveTime :: from_hms_opt( 12 , 34 , 0 ) . unwrap( )
@@ -400,7 +400,7 @@ mod tests {
400400 ..=NaiveTime :: from_hms_opt( 13 , 47 , 0 ) . unwrap( ) ,
401401 ] ) ,
402402 ScheduleDayKind :: TimeRanges ( vec![
403- NaiveTime :: from_hms_opt( 09 , 30 , 0 ) . unwrap( ) ..=MAX_TIME_INSTANT ,
403+ NaiveTime :: from_hms_opt( 9 , 30 , 0 ) . unwrap( ) ..=MAX_TIME_INSTANT ,
404404 ] ) ,
405405 ScheduleDayKind :: Closed ,
406406 ScheduleDayKind :: Closed ,
@@ -409,17 +409,17 @@ mod tests {
409409 ] ,
410410 holidays : vec ! [
411411 HolidayDaySchedule {
412- month: 04 ,
412+ month: 4 ,
413413 day: 12 ,
414414 kind: ScheduleDayKind :: Open ,
415415 } ,
416416 HolidayDaySchedule {
417- month: 04 ,
417+ month: 4 ,
418418 day: 13 ,
419419 kind: ScheduleDayKind :: Closed ,
420420 } ,
421421 HolidayDaySchedule {
422- month: 04 ,
422+ month: 4 ,
423423 day: 14 ,
424424 kind: ScheduleDayKind :: TimeRanges ( vec![
425425 NaiveTime :: from_hms_opt( 12 , 34 , 0 ) . unwrap( )
@@ -430,7 +430,7 @@ mod tests {
430430 month: 12 ,
431431 day: 30 ,
432432 kind: ScheduleDayKind :: TimeRanges ( vec![
433- NaiveTime :: from_hms_opt( 09 , 30 , 0 ) . unwrap( ) ..=MAX_TIME_INSTANT ,
433+ NaiveTime :: from_hms_opt( 9 , 30 , 0 ) . unwrap( ) ..=MAX_TIME_INSTANT ,
434434 ] ) ,
435435 } ,
436436 ] ,
0 commit comments