From 94534a22240629227a2446a8887260aba37a4e70 Mon Sep 17 00:00:00 2001 From: Scott Schafer Date: Thu, 31 Jul 2025 09:32:46 -0600 Subject: [PATCH] fix: Message is continuation if any element follows --- src/renderer/mod.rs | 5 +---- tests/rustc_tests.rs | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/renderer/mod.rs b/src/renderer/mod.rs index 5388c15..a4022b1 100644 --- a/src/renderer/mod.rs +++ b/src/renderer/mod.rs @@ -310,10 +310,7 @@ impl Renderer { title, max_line_num_len, title_style, - matches!( - peek, - Some(Element::Message(_)) | Some(Element::Padding(_)) - ), + peek.is_some(), buffer_msg_line_offset, ); last_was_suggestion = false; diff --git a/tests/rustc_tests.rs b/tests/rustc_tests.rs index b31e93b..6161dd3 100644 --- a/tests/rustc_tests.rs +++ b/tests/rustc_tests.rs @@ -3848,7 +3848,7 @@ note: for a trait to be dyn compatible it needs to allow building a vtable for more information, visit ╭▸ $SRC_DIR/core/src/cmp.rs:961:20 │ - ╰ note: the trait is not dyn compatible because it uses `Self` as a type parameter + ├ note: the trait is not dyn compatible because it uses `Self` as a type parameter ⸬ $SRC_DIR/core/src/cmp.rs:338:14 │ ╰ note: the trait is not dyn compatible because it uses `Self` as a type parameter