Skip to content

Commit

Permalink
style: format with cargo fmt --all
Browse files Browse the repository at this point in the history
  • Loading branch information
Zxilly committed Jun 29, 2024
1 parent c16dc8f commit 79c6666
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/typos-cli/src/bin/typos-cli/report.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ fn print_brief_correction(msg: &Typo<'_>) -> Result<(), std::io::Error> {
msg.typo,
itertools::join(
corrections.iter().map(|s| format!("`{good}{}{reset}`", s)),
", "
", ",
)
)?;
}
Expand Down Expand Up @@ -193,7 +193,7 @@ fn print_long_correction(msg: &Typo<'_>) -> Result<(), std::io::Error> {
msg.typo,
itertools::join(
corrections.iter().map(|s| format!("`{good}{}{reset}`", s)),
", "
", ",
)
)?;
}
Expand Down Expand Up @@ -348,7 +348,7 @@ mod tests {
fn test_calculate_visible_column_width_zwj_sequences() {
let zwj_sequences = [
"😵‍💫", /* 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() {
let width = calculate_visible_column_width(ch);
Expand Down

0 comments on commit 79c6666

Please sign in to comment.