fix compile warning
This commit is contained in:
parent
9ccd3d6212
commit
164af11b8b
|
@ -47,7 +47,7 @@ pub async fn upload(form: FormData, ip: Option<IpAddr>, state: SharedState) -> R
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(pass) = state.config.files.upload_pass {
|
if let Some(pass) = state.config.files.upload_pass {
|
||||||
let mut pass_valid = false;
|
let pass_valid: bool;
|
||||||
if let Some(upass) = formdata.instancepass {
|
if let Some(upass) = formdata.instancepass {
|
||||||
pass_valid = upass == pass;
|
pass_valid = upass == pass;
|
||||||
} else {
|
} else {
|
||||||
|
@ -85,7 +85,7 @@ pub async fn upload(form: FormData, ip: Option<IpAddr>, state: SharedState) -> R
|
||||||
"File uploaded successfully.\n",
|
"File uploaded successfully.\n",
|
||||||
"It is available via this link:\n\n",
|
"It is available via this link:\n\n",
|
||||||
|
|
||||||
"{}/upload/{}"
|
"{}/upload/{}\n"
|
||||||
),
|
),
|
||||||
state.env.instanceurl,
|
state.env.instanceurl,
|
||||||
urlencoding::encode(
|
urlencoding::encode(
|
||||||
|
|
Loading…
Reference in New Issue