提交 a21b7b3b 编写于 作者: V varkor

Improve formatting of else block

上级 aa6cc6e1
......@@ -1016,7 +1016,9 @@ fn emit_message_default(&mut self,
let loc = if let Some(first_line) = annotated_file.lines.first() {
let col = if let Some(first_annotation) = first_line.annotations.first() {
format!(":{}", first_annotation.start_col + 1)
} else { "".to_string() };
} else {
"".to_string()
};
format!("{}:{}{}",
annotated_file.file.name,
cm.doctest_offset_line(first_line.line_index),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册