Skip to content

Commit 5b1d4f1

Browse files
authored
Refactor buffer data constructors to align formatting for try_new_with_buffer_provider (#6348)
1 parent 5f41720 commit 5b1d4f1

File tree

21 files changed

+29
-29
lines changed

21 files changed

+29
-29
lines changed

components/calendar/src/cal/hijri.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ impl HijriUmmAlQura {
184184
icu_provider::gen_buffer_data_constructors!(() -> error: DataError,
185185
functions: [
186186
new: skip,
187-
try_new_with_buffer_provider,
187+
try_new_with_buffer_provider,
188188
try_new_unstable,
189189
Self,
190190
]);

components/calendar/src/cal/japanese.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ impl Japanese {
116116
icu_provider::gen_buffer_data_constructors!(() -> error: DataError,
117117
functions: [
118118
new: skip,
119-
try_new_with_buffer_provider,
119+
try_new_with_buffer_provider,
120120
try_new_unstable,
121121
Self,
122122
]);
@@ -169,7 +169,7 @@ impl JapaneseExtended {
169169
icu_provider::gen_buffer_data_constructors!(() -> error: DataError,
170170
functions: [
171171
new: skip,
172-
try_new_with_buffer_provider,
172+
try_new_with_buffer_provider,
173173
try_new_unstable,
174174
Self,
175175
]);

components/casemap/src/titlecase.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ impl TitlecaseMapper<CaseMapper> {
215215
icu_provider::gen_buffer_data_constructors!(() -> error: DataError,
216216
functions: [
217217
new: skip,
218-
try_new_with_buffer_provider,
218+
try_new_with_buffer_provider,
219219
try_new_unstable,
220220
Self,
221221
]);

components/collator/src/comparison.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ impl Collator {
280280
(prefs: CollatorPreferences, options: CollatorOptions) -> error: DataError,
281281
functions: [
282282
try_new: skip,
283-
try_new_with_buffer_provider,
283+
try_new_with_buffer_provider,
284284
try_new_unstable,
285285
Self
286286
]

components/experimental/src/dimension/currency/compact_formatter.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ impl CompactCurrencyFormatter {
7171
(prefs: CompactCurrencyFormatterPreferences, options: CompactCurrencyFormatterOptions) -> error: DataError,
7272
functions: [
7373
try_new: skip,
74-
try_new_with_buffer_provider,
74+
try_new_with_buffer_provider,
7575
try_new_unstable,
7676
Self
7777
]

components/experimental/src/dimension/currency/formatter.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ impl CurrencyFormatter {
6060
(prefs: CurrencyFormatterPreferences, options: super::options::CurrencyFormatterOptions) -> error: DataError,
6161
functions: [
6262
try_new: skip,
63-
try_new_with_buffer_provider,
63+
try_new_with_buffer_provider,
6464
try_new_unstable,
6565
Self
6666
]

components/experimental/src/dimension/currency/long_compact_formatter.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ impl LongCompactCurrencyFormatter {
6868
) -> error: DataError,
6969
functions: [
7070
try_new: skip,
71-
try_new_with_buffer_provider,
71+
try_new_with_buffer_provider,
7272
try_new_unstable,
7373
Self
7474
]

components/experimental/src/dimension/currency/long_formatter.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ impl LongCurrencyFormatter {
4545
(prefs: CurrencyFormatterPreferences, currency_code: &CurrencyCode) -> error: DataError,
4646
functions: [
4747
try_new: skip,
48-
try_new_with_buffer_provider,
48+
try_new_with_buffer_provider,
4949
try_new_unstable,
5050
Self
5151
]

components/experimental/src/dimension/percent/formatter.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ impl PercentFormatter<DecimalFormatter> {
5353
(prefs: PercentFormatterPreferences, options: PercentFormatterOptions) -> error: DataError,
5454
functions: [
5555
try_new: skip,
56-
try_new_with_buffer_provider,
56+
try_new_with_buffer_provider,
5757
try_new_unstable,
5858
Self
5959
]

components/experimental/src/dimension/units/formatter.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl UnitsFormatter {
6464
(prefs: UnitsFormatterPreferences, unit: &str, options: super::options::UnitsFormatterOptions) -> error: DataError,
6565
functions: [
6666
try_new: skip,
67-
try_new_with_buffer_provider,
67+
try_new_with_buffer_provider,
6868
try_new_unstable,
6969
Self
7070
]

components/experimental/src/displaynames/displaynames.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ impl RegionDisplayNames {
5252
/// Creates a new [`RegionDisplayNames`] from locale data and an options bag using compiled data.
5353
functions: [
5454
try_new,
55-
try_new_with_buffer_provider,
55+
try_new_with_buffer_provider,
5656
try_new_unstable,
5757
Self
5858
]
@@ -119,7 +119,7 @@ impl ScriptDisplayNames {
119119
/// Creates a new [`ScriptDisplayNames`] from locale data and an options bag using compiled data.
120120
functions: [
121121
try_new,
122-
try_new_with_buffer_provider,
122+
try_new_with_buffer_provider,
123123
try_new_unstable,
124124
Self
125125
]
@@ -187,7 +187,7 @@ impl VariantDisplayNames {
187187
/// Creates a new [`VariantDisplayNames`] from locale data and an options bag using compiled data.
188188
functions: [
189189
try_new,
190-
try_new_with_buffer_provider,
190+
try_new_with_buffer_provider,
191191
try_new_unstable,
192192
Self
193193
]
@@ -250,7 +250,7 @@ impl LanguageDisplayNames {
250250
/// Creates a new [`LanguageDisplayNames`] from locale data and an options bag using compiled data.
251251
functions: [
252252
try_new,
253-
try_new_with_buffer_provider,
253+
try_new_with_buffer_provider,
254254
try_new_unstable,
255255
Self
256256
]
@@ -334,7 +334,7 @@ impl LocaleDisplayNamesFormatter {
334334
/// Creates a new [`LocaleDisplayNamesFormatter`] from locale data and an options bag using compiled data.
335335
functions: [
336336
try_new,
337-
try_new_with_buffer_provider,
337+
try_new_with_buffer_provider,
338338
try_new_unstable,
339339
Self
340340
]

components/experimental/src/duration/formatter.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ impl DurationFormatter {
195195
(prefs: DurationFormatterPreferences, options: ValidatedDurationFormatterOptions) -> error: DataError,
196196
functions: [
197197
try_new: skip,
198-
try_new_with_buffer_provider,
198+
try_new_with_buffer_provider,
199199
try_new_unstable,
200200
Self
201201
]

components/experimental/src/units/converter_factory.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ impl ConverterFactory {
4242
() -> error: DataError,
4343
functions: [
4444
new: skip,
45-
try_new_with_buffer_provider,
45+
try_new_with_buffer_provider,
4646
try_new_unstable,
4747
Self,
4848
]

components/locale/src/fallback/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ impl LocaleFallbacker {
118118
icu_provider::gen_buffer_data_constructors!(() -> error: DataError,
119119
functions: [
120120
new: skip,
121-
try_new_with_buffer_provider,
121+
try_new_with_buffer_provider,
122122
try_new_unstable,
123123
Self
124124
]);

components/normalizer/src/properties.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ impl CanonicalComposition {
148148
icu_provider::gen_buffer_data_constructors!(() -> error: DataError,
149149
functions: [
150150
new: skip,
151-
try_new_with_buffer_provider,
151+
try_new_with_buffer_provider,
152152
try_new_unstable,
153153
Self,
154154
]
@@ -475,7 +475,7 @@ impl CanonicalDecomposition {
475475
icu_provider::gen_buffer_data_constructors!(() -> error: DataError,
476476
functions: [
477477
new: skip,
478-
try_new_with_buffer_provider,
478+
try_new_with_buffer_provider,
479479
try_new_unstable,
480480
Self,
481481
]
@@ -646,7 +646,7 @@ impl CanonicalCombiningClassMap {
646646
icu_provider::gen_buffer_data_constructors!(() -> error: DataError,
647647
functions: [
648648
new: skip,
649-
try_new_with_buffer_provider,
649+
try_new_with_buffer_provider,
650650
try_new_unstable,
651651
Self,
652652
]);

components/properties/src/script.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ impl ScriptWithExtensions {
319319
() -> result: Result<ScriptWithExtensions, DataError>,
320320
functions: [
321321
new: skip,
322-
try_new_with_buffer_provider,
322+
try_new_with_buffer_provider,
323323
try_new_unstable,
324324
Self,
325325
]

components/segmenter/src/grapheme.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ impl GraphemeClusterSegmenter {
150150
icu_provider::gen_buffer_data_constructors!(() -> error: DataError,
151151
functions: [
152152
new: skip,
153-
try_new_with_buffer_provider,
153+
try_new_with_buffer_provider,
154154
try_new_unstable,
155155
Self,
156156
]);

components/segmenter/src/sentence.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ impl SentenceSegmenter {
148148
/// Constructs a [`SentenceSegmenter`] for a given options and using compiled data.
149149
functions: [
150150
try_new,
151-
try_new_with_buffer_provider,
151+
try_new_with_buffer_provider,
152152
try_new_unstable,
153153
Self
154154
]

components/time/src/zone/iana.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ impl IanaParser {
107107
icu_provider::gen_buffer_data_constructors!(() -> error: DataError,
108108
functions: [
109109
new: skip,
110-
try_new_with_buffer_provider,
110+
try_new_with_buffer_provider,
111111
try_new_unstable,
112112
Self,
113113
]
@@ -303,7 +303,7 @@ impl IanaParserExtended<IanaParser> {
303303
icu_provider::gen_buffer_data_constructors!(() -> error: DataError,
304304
functions: [
305305
new: skip,
306-
try_new_with_buffer_provider,
306+
try_new_with_buffer_provider,
307307
try_new_unstable,
308308
Self,
309309
]

components/time/src/zone/offset.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ impl VariantOffsetsCalculator {
228228
icu_provider::gen_buffer_data_constructors!(() -> error: DataError,
229229
functions: [
230230
new: skip,
231-
try_new_with_buffer_provider,
231+
try_new_with_buffer_provider,
232232
try_new_unstable,
233233
Self,
234234
]

components/time/src/zone/windows.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ impl WindowsParser {
5252
icu_provider::gen_buffer_data_constructors!(() -> error: DataError,
5353
functions: [
5454
new: skip,
55-
try_new_with_buffer_provider,
55+
try_new_with_buffer_provider,
5656
try_new_unstable,
5757
Self,
5858
]

0 commit comments

Comments
 (0)