Skip to content

Commit 6d569c3

Browse files
bors[bot]flipbit03
andauthored
Merge #4639
4639: Fixed missing newline on each field on "Missing structure fields". r=flodiebold a=flipbit03 Co-authored-by: Cadu <cadu.coelho@gmail.com>
2 parents 94889b6 + c011f04 commit 6d569c3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/ra_hir_ty/src/diagnostics.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

crates/ra_ide/src/diagnostics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)