diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-01-04 02:25:11 +0100 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-01-04 02:25:11 +0100 |
| commit | 137b2e55c21459261d4fa0f909ccfc60f98117e5 (patch) | |
| tree | 31030beb3cfb71a3b62f00d37d620e89bc074c46 /src/html_renderer.rs | |
| parent | 3a7229d55bb1091a2bdd5d7fcd87f1c82d0a734a (diff) | |
Use String::new() for empty strings
Diffstat (limited to 'src/html_renderer.rs')
| -rw-r--r-- | src/html_renderer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/html_renderer.rs b/src/html_renderer.rs index 7724131..6b9ce38 100644 --- a/src/html_renderer.rs +++ b/src/html_renderer.rs @@ -206,7 +206,7 @@ mod tests { fn test_links() { let input = vec![ GeminiLine::Link("https://example.com".to_string(), "Example".to_string()), - GeminiLine::Link("https://rust-lang.org".to_string(), "".to_string()), + GeminiLine::Link("https://rust-lang.org".to_string(), String::new()), ]; assert_eq!( render_html(&input), |