From 164af11b8bdd65d4672f7f34798a517588c42d88 Mon Sep 17 00:00:00 2001 From: blek Date: Thu, 2 Nov 2023 19:01:21 +1000 Subject: [PATCH] fix compile warning --- filed/src/web/curlapi/upload.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/filed/src/web/curlapi/upload.rs b/filed/src/web/curlapi/upload.rs index a702bd9..a15aa07 100644 --- a/filed/src/web/curlapi/upload.rs +++ b/filed/src/web/curlapi/upload.rs @@ -47,7 +47,7 @@ pub async fn upload(form: FormData, ip: Option, state: SharedState) -> R } if let Some(pass) = state.config.files.upload_pass { - let mut pass_valid = false; + let pass_valid: bool; if let Some(upass) = formdata.instancepass { pass_valid = upass == pass; } else { @@ -85,7 +85,7 @@ pub async fn upload(form: FormData, ip: Option, state: SharedState) -> R "File uploaded successfully.\n", "It is available via this link:\n\n", - "{}/upload/{}" + "{}/upload/{}\n" ), state.env.instanceurl, urlencoding::encode(