From c011f04f55e82c5a057772fa3fb7a1c4d328c6d2 Mon Sep 17 00:00:00 2001 From: Cadu Date: Wed, 27 May 2020 13:15:19 -0300 Subject: Fixed missing newline on each field on "Missing structure fields". --- crates/ra_hir_ty/src/diagnostics.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_hir_ty/src/diagnostics.rs') diff --git a/crates/ra_hir_ty/src/diagnostics.rs b/crates/ra_hir_ty/src/diagnostics.rs index 41ac70272..2c7298714 100644 --- a/crates/ra_hir_ty/src/diagnostics.rs +++ b/crates/ra_hir_ty/src/diagnostics.rs @@ -40,7 +40,7 @@ impl Diagnostic for MissingFields { fn message(&self) -> String { let mut buf = String::from("Missing structure fields:\n"); for field in &self.missed_fields { - format_to!(buf, "- {}", field); + format_to!(buf, "- {}\n", field); } buf } @@ -73,7 +73,7 @@ impl Diagnostic for MissingPatFields { fn message(&self) -> String { let mut buf = String::from("Missing structure fields:\n"); for field in &self.missed_fields { - format_to!(buf, "- {}", field); + format_to!(buf, "- {}\n", field); } buf } -- cgit v1.2.3