Improve formatting of tables.rs
Make unicode.py generate a tables.rs which is more conformant to usual Rust formatting (as per `rustfmt`).
This commit is contained in:
parent
eab351ef3e
commit
b081436ca4
1 changed files with 3 additions and 3 deletions
|
|
@ -326,15 +326,15 @@ def emit_conversions_module(f, to_upper, to_lower, to_title):
|
|||
|
||||
pub fn to_lower(c: char) -> [char; 3] {
|
||||
match bsearch_case_table(c, to_lowercase_table) {
|
||||
None => [c, '\\0', '\\0'],
|
||||
Some(index) => to_lowercase_table[index].1
|
||||
None => [c, '\\0', '\\0'],
|
||||
Some(index) => to_lowercase_table[index].1,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn to_upper(c: char) -> [char; 3] {
|
||||
match bsearch_case_table(c, to_uppercase_table) {
|
||||
None => [c, '\\0', '\\0'],
|
||||
Some(index) => to_uppercase_table[index].1
|
||||
Some(index) => to_uppercase_table[index].1,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue