File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ impl Diagnostic for MissingFields {
4040 fn message ( & self ) -> String {
4141 let mut buf = String :: from ( "Missing structure fields:\n " ) ;
4242 for field in & self . missed_fields {
43- format_to ! ( buf, "- {}" , field) ;
43+ format_to ! ( buf, "- {}\n " , field) ;
4444 }
4545 buf
4646 }
@@ -73,7 +73,7 @@ impl Diagnostic for MissingPatFields {
7373 fn message ( & self ) -> String {
7474 let mut buf = String :: from ( "Missing structure fields:\n " ) ;
7575 for field in & self . missed_fields {
76- format_to ! ( buf, "- {}" , field) ;
76+ format_to ! ( buf, "- {}\n " , field) ;
7777 }
7878 buf
7979 }
Original file line number Diff line number Diff line change @@ -664,7 +664,7 @@ mod tests {
664664 assert_debug_snapshot ! ( diagnostics, @r###"
665665 [
666666 Diagnostic {
667- message: "Missing structure fields:\n- b",
667+ message: "Missing structure fields:\n- b\n ",
668668 range: 224..233,
669669 severity: Error,
670670 fix: Some(
You can’t perform that action at this time.
0 commit comments