]> git.r.bdr.sh - rbdr/gema_texto/commitdiff
Fix lints
authorRuben Beltran del Rio <redacted>
Mon, 13 Jan 2025 17:39:35 +0000 (18:39 +0100)
committerRuben Beltran del Rio <redacted>
Mon, 13 Jan 2025 17:39:35 +0000 (18:39 +0100)
src/html_renderer.rs

index 503337bf069cdfdab2516c98dd37c61806d9dcb3..fccf16350370fe432ac8435e544c3c7126d93033 100644 (file)
@@ -105,7 +105,11 @@ fn line_content(line: &GeminiLine) -> String {
             } else {
                 processed_url = url.to_string();
             }
-            let display = if text.is_empty() { &processed_url } else { text };
+            let display = if text.is_empty() {
+                &processed_url
+            } else {
+                text
+            };
             format!("<p class=\"a\"><a href=\"{processed_url}\">{display}</a></p>")
         }
         GeminiLine::Heading(level, content) => format!("<h{level}>{content}</h{level}>"),