Skip to content

Commit b081436

Browse files
committed
Improve formatting of tables.rs
Make unicode.py generate a tables.rs which is more conformant to usual Rust formatting (as per `rustfmt`).
1 parent eab351e commit b081436

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/etc/unicode.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -326,15 +326,15 @@ def emit_conversions_module(f, to_upper, to_lower, to_title):
326326
327327
pub fn to_lower(c: char) -> [char; 3] {
328328
match bsearch_case_table(c, to_lowercase_table) {
329-
None => [c, '\\0', '\\0'],
330-
Some(index) => to_lowercase_table[index].1
329+
None => [c, '\\0', '\\0'],
330+
Some(index) => to_lowercase_table[index].1,
331331
}
332332
}
333333
334334
pub fn to_upper(c: char) -> [char; 3] {
335335
match bsearch_case_table(c, to_uppercase_table) {
336336
None => [c, '\\0', '\\0'],
337-
Some(index) => to_uppercase_table[index].1
337+
Some(index) => to_uppercase_table[index].1,
338338
}
339339
}
340340

0 commit comments

Comments
 (0)