Skip to content

Commit 86f0117

Browse files
committed
Make explicit an unreachable NoDelim case in rustfmt.
1 parent 9665da3 commit 86f0117

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/rustfmt/src/macros.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ fn delim_token_to_str(
562562
("{ ", " }")
563563
}
564564
}
565-
DelimToken::NoDelim => ("", ""),
565+
DelimToken::NoDelim => unreachable!(),
566566
};
567567
if use_multiple_lines {
568568
let indent_str = shape.indent.to_string_with_newline(context.config);

0 commit comments

Comments
 (0)