diff options
| author | Andrea Canciani <ranma42@gmail.com> | 2016-01-04 17:27:51 +0100 |
|---|---|---|
| committer | Andrea Canciani <ranma42@gmail.com> | 2016-01-04 17:51:05 +0100 |
| commit | b081436ca4e20c864436bf12a0b0fa4bb82c049a (patch) | |
| tree | a51c79a0f12944c821a71ecc1342253a4b3e100b | |
| parent | eab351ef3e04290d8df17e64f2c3a442bdffd71f (diff) | |
| download | rust-b081436ca4e20c864436bf12a0b0fa4bb82c049a.tar.gz rust-b081436ca4e20c864436bf12a0b0fa4bb82c049a.zip | |
Improve formatting of tables.rs
Make unicode.py generate a tables.rs which is more conformant to usual Rust formatting (as per `rustfmt`).
| -rwxr-xr-x | src/etc/unicode.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/etc/unicode.py b/src/etc/unicode.py index 4452be10bc2..5a9fbdd3240 100755 --- a/src/etc/unicode.py +++ b/src/etc/unicode.py @@ -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, } } |
