Skip to content

Commit

Permalink
misc: Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
Luni-4 committed Dec 9, 2024
1 parent 9e01547 commit 8eeb742
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/colorize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,7 @@ where
if op == " " && subvalue.is_none() {
output(" ", &format!("{subindent}..."));
} else {
assert!(
([" ", "-", "+", "~"].contains(&op)),
"Unexpected op '{op}'"
);
assert!(([" ", "-", "+", "~"].contains(&op)), "Unexpected op '{op}'");
let subvalue = subvalue.unwrap();
let color = if op == "~" { " " } else { op };
subcolorize(None, subvalue, output, color, subindent);
Expand Down

0 comments on commit 8eeb742

Please sign in to comment.