diff options
Diffstat (limited to 'src/html.rs')
| -rw-r--r-- | src/html.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/html.rs b/src/html.rs index 2574d8b..b35e41c 100644 --- a/src/html.rs +++ b/src/html.rs @@ -4,7 +4,13 @@ fn link_from_host_href(url: &Url, href: &str) -> Option<String> { Some(format!( "gemini://{}{}{}", url.domain()?, - { if href.starts_with('/') { "" } else { "/" } }, + { + if href.starts_with('/') { + "" + } else { + "/" + } + }, href )) } |