aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-04-17 07:07:44 +0000
committerFuwn <[email protected]>2023-04-17 07:07:44 +0000
commitb0686f6e0501ec46c8b4f17cbd17403d3e204016 (patch)
treed45892e354d1249051075451d670cfc8a1510ec4 /src
parentci(docker): bump rustc (diff)
downloadseptember-b0686f6e0501ec46c8b4f17cbd17403d3e204016.tar.xz
september-b0686f6e0501ec46c8b4f17cbd17403d3e204016.zip
deps(germ): bump from 0.3.7 to 0.3.9
Diffstat (limited to 'src')
-rw-r--r--src/gemini_to_html.rs2
-rw-r--r--src/response.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gemini_to_html.rs b/src/gemini_to_html.rs
index 593f9dd..d7bc9b6 100644
--- a/src/gemini_to_html.rs
+++ b/src/gemini_to_html.rs
@@ -43,7 +43,7 @@ pub fn gemini_to_html(
is_proxy: bool,
) -> (String, String) {
let ast_tree =
- germ::ast::Ast::from_string(&String::from_utf8_lossy(&response.data));
+ germ::ast::Ast::from_string(String::from_utf8_lossy(&response.data));
let ast = ast_tree.inner();
let mut html = String::new();
let mut title = String::new();
diff --git a/src/response.rs b/src/response.rs
index 3b88bcc..9ec2ac1 100644
--- a/src/response.rs
+++ b/src/response.rs
@@ -101,7 +101,7 @@ For example: to proxy "gemini://fuwn.me/uptime", visit "/proxy/fuwn.me/uptime".<
}
let response_time_taken = timer.elapsed();
- let meta = germ::meta::Meta::from_string(&response.meta);
+ let meta = germ::meta::Meta::from_string(response.meta.clone());
let charset = meta
.parameters()
.get("charset")