aboutsummaryrefslogtreecommitdiff
path: root/src/html.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-12-12 08:23:38 +0000
committerFuwn <[email protected]>2023-12-12 08:23:38 +0000
commit6e05c61128d5bce8ed52638532da6264e90b0732 (patch)
tree1cd1acc1f8cda40e1e0945713f252a05ffd9ebd2 /src/html.rs
parentdeps(germ): bump from 0.3.9 to 0.3.10 (diff)
downloadseptember-6e05c61128d5bce8ed52638532da6264e90b0732.tar.xz
september-6e05c61128d5bce8ed52638532da6264e90b0732.zip
style: use rustfmt
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
))
}