aboutsummaryrefslogtreecommitdiff
path: root/src/html.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-04-04 01:47:48 +0000
committerFuwn <[email protected]>2024-04-04 01:47:48 +0000
commit346563c548e1053acc5949a851be38a83ad478b8 (patch)
tree797f1e4194ca3ffadef86359ee3a8ecafa966744 /src/html.rs
parentfeat(cargo): bump version (diff)
downloadseptember-346563c548e1053acc5949a851be38a83ad478b8.tar.xz
september-346563c548e1053acc5949a851be38a83ad478b8.zip
feat(response): clean up proxy info
Diffstat (limited to 'src/html.rs')
-rw-r--r--src/html.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/html.rs b/src/html.rs
index d50501c..b86c496 100644
--- a/src/html.rs
+++ b/src/html.rs
@@ -21,13 +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
))
}