Skip to content

Commit

Permalink
Make explicit an unreachable NoDelim case in rustfmt.
Browse files Browse the repository at this point in the history
  • Loading branch information
nnethercote committed Apr 27, 2022
1 parent 9665da3 commit 86f0117
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/rustfmt/src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ fn delim_token_to_str(
("{ ", " }")
}
}
DelimToken::NoDelim => ("", ""),
DelimToken::NoDelim => unreachable!(),
};
if use_multiple_lines {
let indent_str = shape.indent.to_string_with_newline(context.config);
Expand Down

0 comments on commit 86f0117

Please sign in to comment.