diff options
Diffstat (limited to 'src/html.rs')
| -rw-r--r-- | src/html.rs | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/html.rs b/src/html.rs index 0c88b2a..bdf4206 100644 --- a/src/html.rs +++ b/src/html.rs @@ -15,21 +15,14 @@ // Copyright (C) 2022-2023 Fuwn <[email protected]> // SPDX-License-Identifier: GPL-3.0-only -use std::env::var; - -use germ::ast::Node; -use url::Url; +use {germ::ast::Node, std::env::var, url::Url}; 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 )) |