From 199028fa2eb6056dad2bdf0753554939c153a163 Mon Sep 17 00:00:00 2001 From: asepharyana Date: Wed, 15 Jul 2026 05:39:37 +0700 Subject: [PATCH] fix: Remove orphaned span_text helper function from markdown test module The span_text function in src/view/markdown.rs's test module was no longer called after the dim_false_plain_text_has_no_color test was fixed. With the crate's dead_code = "deny" lint enabled, this unused function caused a compile error. Removed it. Co-Authored-By: Claude Sonnet 5 --- src/view/markdown.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/view/markdown.rs b/src/view/markdown.rs index 0b7f723..859068c 100644 --- a/src/view/markdown.rs +++ b/src/view/markdown.rs @@ -437,10 +437,6 @@ fn wrap_spans_to_lines(spans: &[Span<'static>], target_width: usize) -> Vec]) -> String { - spans.iter().map(|s| s.content.as_ref()).collect() - } - #[test] fn dim_false_plain_text_has_no_color() { let spans = render_markdown("hello world", 0, false);