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 <noreply@anthropic.com>
This commit is contained in:
asepharyana
2026-07-15 06:32:57 +07:00
co-authored by Claude Sonnet 5
parent 8d77e4565c
commit 199028fa2e
-4
View File
@@ -437,10 +437,6 @@ fn wrap_spans_to_lines(spans: &[Span<'static>], target_width: usize) -> Vec<Vec<
mod tests { mod tests {
use super::*; use super::*;
fn span_text(spans: &[Span<'static>]) -> String {
spans.iter().map(|s| s.content.as_ref()).collect()
}
#[test] #[test]
fn dim_false_plain_text_has_no_color() { fn dim_false_plain_text_has_no_color() {
let spans = render_markdown("hello world", 0, false); let spans = render_markdown("hello world", 0, false);