From ee822fb73e5813a167ed30b7c4e1c98fb330a4cc Mon Sep 17 00:00:00 2001 From: Fuwn Date: Tue, 2 Apr 2024 01:30:12 -0700 Subject: [PATCH] feat(cargo): bump version --- Cargo.toml | 2 +- src/html.rs | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8d39d9c..4c3081e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ [package] name = "september" -version = "0.2.13" +version = "0.2.14" authors = ["Fuwn "] edition = "2021" description = "A simple and efficient Gemini-to-HTTP proxy." diff --git a/src/html.rs b/src/html.rs index b86c496..d50501c 100644 --- a/src/html.rs +++ b/src/html.rs @@ -21,7 +21,13 @@ fn link_from_host_href(url: &Url, href: &str) -> Option { Some(format!( "gemini://{}{}{}", url.domain()?, - { if href.starts_with('/') { "" } else { "/" } }, + { + if href.starts_with('/') { + "" + } else { + "/" + } + }, href )) }