Skip to content

Commit 1d826e9

Browse files
author
Robert Masen
committed
fix reformatting for new syntax
1 parent c7d98b9 commit 1d826e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/cli-support/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ fn reset_indentation(s: &str) -> String {
443443

444444
for line in s.lines() {
445445
let line = line.trim();
446-
if line.starts_with('}') || line.ends_with('}') {
446+
if line.starts_with('}') || (line.ends_with('}') && !line.starts_with('*')) {
447447
indent = indent.saturating_sub(1);
448448
}
449449
let extra = if line.starts_with(':') || line.starts_with('?') { 1 } else { 0 };

0 commit comments

Comments
 (0)