Make explicit an unreachable NoDelim case in rustfmt.

This commit is contained in:
Nicholas Nethercote 2022-04-26 15:09:11 +10:00
parent 9665da35cc
commit 86f011704c

View File

@ -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);