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 {
40
40
fn message ( & self ) -> String {
41
41
let mut buf = String :: from ( "Missing structure fields:\n " ) ;
42
42
for field in & self . missed_fields {
43
- format_to ! ( buf, "- {}" , field) ;
43
+ format_to ! ( buf, "- {}\n " , field) ;
44
44
}
45
45
buf
46
46
}
@@ -73,7 +73,7 @@ impl Diagnostic for MissingPatFields {
73
73
fn message ( & self ) -> String {
74
74
let mut buf = String :: from ( "Missing structure fields:\n " ) ;
75
75
for field in & self . missed_fields {
76
- format_to ! ( buf, "- {}" , field) ;
76
+ format_to ! ( buf, "- {}\n " , field) ;
77
77
}
78
78
buf
79
79
}
Original file line number Diff line number Diff line change @@ -664,7 +664,7 @@ mod tests {
664
664
assert_debug_snapshot ! ( diagnostics, @r###"
665
665
[
666
666
Diagnostic {
667
- message: "Missing structure fields:\n- b",
667
+ message: "Missing structure fields:\n- b\n ",
668
668
range: 224..233,
669
669
severity: Error,
670
670
fix: Some(
You can’t perform that action at this time.
0 commit comments