Skip to content

Commit d81a08a

Browse files
committed
Add #[allow(ellipsis_inclusive_range_patterns)] to unicode.py
1 parent 717e6c2 commit d81a08a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/unicode.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,24 +344,28 @@ def gen_qc_match(prop_table, out):
344344

345345
def gen_nfc_qc(prop_tables, out):
346346
out.write("#[inline]\n")
347+
out.write("#[allow(ellipsis_inclusive_range_patterns)]\n")
347348
out.write("pub fn qc_nfc(c: char) -> IsNormalized {\n")
348349
gen_qc_match(prop_tables['NFC_QC'], out)
349350
out.write("}\n")
350351

351352
def gen_nfkc_qc(prop_tables, out):
352353
out.write("#[inline]\n")
354+
out.write("#[allow(ellipsis_inclusive_range_patterns)]\n")
353355
out.write("pub fn qc_nfkc(c: char) -> IsNormalized {\n")
354356
gen_qc_match(prop_tables['NFKC_QC'], out)
355357
out.write("}\n")
356358

357359
def gen_nfd_qc(prop_tables, out):
358360
out.write("#[inline]\n")
361+
out.write("#[allow(ellipsis_inclusive_range_patterns)]\n")
359362
out.write("pub fn qc_nfd(c: char) -> IsNormalized {\n")
360363
gen_qc_match(prop_tables['NFD_QC'], out)
361364
out.write("}\n")
362365

363366
def gen_nfkd_qc(prop_tables, out):
364367
out.write("#[inline]\n")
368+
out.write("#[allow(ellipsis_inclusive_range_patterns)]\n")
365369
out.write("pub fn qc_nfkd(c: char) -> IsNormalized {\n")
366370
gen_qc_match(prop_tables['NFKD_QC'], out)
367371
out.write("}\n")

0 commit comments

Comments
 (0)