tidy up compile warnings

This commit is contained in:
blek 2023-10-01 18:41:34 +10:00
parent d31e3429f1
commit 532acc05f1
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
forms.rs - All the forms
*/
use std::{collections::HashMap, string::FromUtf8Error};
use std::collections::HashMap;
use askama::Template;
use warp::{Filter, reply::Reply, reject::Rejection, filters::multipart::FormData, http::StatusCode};
@ -62,7 +62,7 @@ pub async fn upload(form: FormData, state: SharedState) -> Result<Box<dyn Reply>
}
let data = params.get("file").unwrap();
let delmode = params.get("delmode").unwrap();
let _delmode = params.get("delmode").unwrap();
let named = params.get("named");
let filename = params.get("filename").unwrap();
let mut is_named = named.is_none();