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