Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd81a08a

Browse files
committed
Add #[allow(ellipsis_inclusive_range_patterns)] to unicode.py
1 parent717e6c2 commitd81a08a

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
defgen_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
defgen_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
defgen_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
defgen_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)

[8]ページ先頭

©2009-2025 Movatter.jp