@@ -450,7 +450,7 @@ impl Hijri<TabularAlgorithm> {
450450 /// Use [`Self::new_tabular`]
451451 #[ deprecated( since = "2.1.0" , note = "use `Hijri::new_tabular`" ) ]
452452 pub const fn new ( leap_years : TabularAlgorithmLeapYears , epoch : TabularAlgorithmEpoch ) -> Self {
453- Self :: new_tabular ( leap_years, epoch)
453+ Hijri :: new_tabular ( leap_years, epoch)
454454 }
455455
456456 /// Creates a [`Hijri`] calendar with tabular rules and the given leap year rule and epoch.
@@ -707,8 +707,8 @@ impl<A: AsCalendar<Calendar = Hijri<AstronomicalSimulation>>> Date<A> {
707707 month : u8 ,
708708 day : u8 ,
709709 calendar : A ,
710- ) -> Result < Self , RangeError > {
711- Self :: try_new_hijri_with_calendar ( year, month, day, calendar)
710+ ) -> Result < Date < A > , RangeError > {
711+ Date :: try_new_hijri_with_calendar ( year, month, day, calendar)
712712 }
713713}
714714
@@ -991,15 +991,15 @@ impl<A: AsCalendar<Calendar = Hijri<R>>, R: Rules> Date<A> {
991991 ) -> Result < Self , RangeError > {
992992 ArithmeticDate :: from_year_month_day ( year, month, day, calendar. as_calendar ( ) )
993993 . map ( HijriDateInner )
994- . map ( |inner| Self :: from_raw ( inner, calendar) )
994+ . map ( |inner| Date :: from_raw ( inner, calendar) )
995995 }
996996}
997997
998998impl Date < Hijri < UmmAlQura > > {
999999 /// Deprecated
10001000 #[ deprecated( since = "2.1.0" , note = "use `Date::try_new_hijri_with_calendar" ) ]
10011001 pub fn try_new_ummalqura ( year : i32 , month : u8 , day : u8 ) -> Result < Self , RangeError > {
1002- Self :: try_new_hijri_with_calendar ( year, month, day, Hijri :: new_umm_al_qura ( ) )
1002+ Date :: try_new_hijri_with_calendar ( year, month, day, Hijri :: new_umm_al_qura ( ) )
10031003 }
10041004}
10051005
@@ -1011,8 +1011,8 @@ impl<A: AsCalendar<Calendar = Hijri<TabularAlgorithm>>> Date<A> {
10111011 month : u8 ,
10121012 day : u8 ,
10131013 calendar : A ,
1014- ) -> Result < Self , RangeError > {
1015- Self :: try_new_hijri_with_calendar ( year, month, day, calendar)
1014+ ) -> Result < Date < A > , RangeError > {
1015+ Date :: try_new_hijri_with_calendar ( year, month, day, calendar)
10161016 }
10171017}
10181018
0 commit comments