aboutsummaryrefslogtreecommitdiff
path: root/src/html.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/html.rs')
-rw-r--r--src/html.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/html.rs b/src/html.rs
index bdf4206..c30f5c0 100644
--- a/src/html.rs
+++ b/src/html.rs
@@ -21,9 +21,7 @@ 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
))
}