Skip to content

Commit a6ba4f0

Browse files
authored
Merge branch 'main' into patch-1
2 parents 4fd25cd + 7244442 commit a6ba4f0

File tree

27 files changed

+981
-557
lines changed

27 files changed

+981
-557
lines changed

components/calendar/src/cal/east_asian_traditional.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ impl KoreanTraditional {
403403
/// Use [`Self::new`].
404404
#[cfg(feature = "serde")]
405405
#[doc = icu_provider::gen_buffer_unstable_docs!(BUFFER,Self::new)]
406-
#[deprecated(since = "2.1.0", note = "use `Self::new()")]
406+
#[deprecated(since = "2.1.0", note = "use `Self::new()`")]
407407
pub fn try_new_with_buffer_provider(
408408
_provider: &(impl BufferProvider + ?Sized),
409409
) -> Result<Self, DataError> {
@@ -412,13 +412,13 @@ impl KoreanTraditional {
412412

413413
/// Use [`Self::new`].
414414
#[doc = icu_provider::gen_buffer_unstable_docs!(UNSTABLE, Self::new)]
415-
#[deprecated(since = "2.1.0", note = "use `Self::new()")]
415+
#[deprecated(since = "2.1.0", note = "use `Self::new()`")]
416416
pub fn try_new_unstable<D: ?Sized>(_provider: &D) -> Result<Self, DataError> {
417417
Ok(Self::new())
418418
}
419419

420420
/// Use [`Self::new`].
421-
#[deprecated(since = "2.1.0", note = "use `Self::new()")]
421+
#[deprecated(since = "2.1.0", note = "use `Self::new()`")]
422422
pub fn new_always_calculating() -> Self {
423423
Self::new()
424424
}
@@ -550,21 +550,21 @@ impl ChineseTraditional {
550550

551551
#[cfg(feature = "serde")]
552552
#[doc = icu_provider::gen_buffer_unstable_docs!(BUFFER,Self::new)]
553-
#[deprecated(since = "2.1.0", note = "use `Self::new()")]
553+
#[deprecated(since = "2.1.0", note = "use `Self::new()`")]
554554
pub fn try_new_with_buffer_provider(
555555
_provider: &(impl BufferProvider + ?Sized),
556556
) -> Result<Self, DataError> {
557557
Ok(Self::new())
558558
}
559559

560560
#[doc = icu_provider::gen_buffer_unstable_docs!(UNSTABLE, Self::new)]
561-
#[deprecated(since = "2.1.0", note = "use `Self::new()")]
561+
#[deprecated(since = "2.1.0", note = "use `Self::new()`")]
562562
pub fn try_new_unstable<D: ?Sized>(_provider: &D) -> Result<Self, DataError> {
563563
Ok(Self::new())
564564
}
565565

566566
/// Use [`Self::new()`].
567-
#[deprecated(since = "2.1.0", note = "use `Self::new()")]
567+
#[deprecated(since = "2.1.0", note = "use `Self::new()`")]
568568
pub fn new_always_calculating() -> Self {
569569
Self::new()
570570
}

components/calendar/src/cal/hijri.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,15 +1070,15 @@ impl<A: AsCalendar<Calendar = Hijri<R>>, R: Rules> Date<A> {
10701070

10711071
impl Date<Hijri<UmmAlQura>> {
10721072
/// Deprecated
1073-
#[deprecated(since = "2.1.0", note = "use `Date::try_new_hijri_with_calendar")]
1073+
#[deprecated(since = "2.1.0", note = "use `Date::try_new_hijri_with_calendar`")]
10741074
pub fn try_new_ummalqura(year: i32, month: u8, day: u8) -> Result<Self, RangeError> {
10751075
Date::try_new_hijri_with_calendar(year, month, day, Hijri::new_umm_al_qura())
10761076
}
10771077
}
10781078

10791079
impl<A: AsCalendar<Calendar = Hijri<TabularAlgorithm>>> Date<A> {
10801080
/// Deprecated
1081-
#[deprecated(since = "2.1.0", note = "use `Date::try_new_hijri_with_calendar")]
1081+
#[deprecated(since = "2.1.0", note = "use `Date::try_new_hijri_with_calendar`")]
10821082
pub fn try_new_hijri_tabular_with_calendar(
10831083
year: i32,
10841084
month: u8,

0 commit comments

Comments
 (0)