style: Fix formatting

This commit is contained in:
Ed Page 2023-04-24 00:11:26 -05:00
parent 64e40cffee
commit 9433f016bb

View file

@ -352,9 +352,9 @@ mod tests {
#[test] #[test]
fn test_calculate_visible_column_width_latin_cyrillic() { fn test_calculate_visible_column_width_latin_cyrillic() {
let latin_cyrillic_chars = [ let latin_cyrillic_chars = [
"À", /* U+00C0; Latin Capital Letter A with Grave */ "À", /* U+00C0; Latin Capital Letter A with Grave */
"", /* U+0041 U+0300; Latin Capital Letter A, Combining Grave Accent */ "", /* U+0041 U+0300; Latin Capital Letter A, Combining Grave Accent */
"А", /* U+0410 Cyrillic Capital Letter A */ "А", /* U+0410 Cyrillic Capital Letter A */
]; ];
for (i, ch) in latin_cyrillic_chars.iter().enumerate() { for (i, ch) in latin_cyrillic_chars.iter().enumerate() {
let width = calculate_visible_column_width(ch); let width = calculate_visible_column_width(ch);
@ -400,8 +400,8 @@ mod tests {
#[test] #[test]
fn test_calculate_visible_column_width_zwj_sequences() { fn test_calculate_visible_column_width_zwj_sequences() {
let zwj_sequences = [ let zwj_sequences = [
"😵‍💫", /* U+1F635 U+200D U+1F4AB */ "😵‍💫", /* U+1F635 U+200D U+1F4AB */
"👁️‍🗨️", /* U+1F441 U+FE0F U+200D U+1F5E8 U+FE0F */ "👁️‍🗨️", /* U+1F441 U+FE0F U+200D U+1F5E8 U+FE0F */
]; ];
for (i, ch) in zwj_sequences.iter().enumerate() { for (i, ch) in zwj_sequences.iter().enumerate() {
let width = calculate_visible_column_width(ch); let width = calculate_visible_column_width(ch);