Minimize warnin's

This commit is contained in:
2024-03-22 16:30:49 +05:00
parent 6a64f87bc5
commit aeceb98ad5
4 changed files with 5 additions and 8 deletions

View File

@ -13,13 +13,11 @@ use {
bb8::Pool,
std::sync::Arc,
crate::{
funcs::type_of,
double_split,
},
};
type Res<T, E> = std::result::Result<T, E>;
type Result<T> = std::result::Result<T, Box<dyn std::error::Error + Send + Sync>>;
type DBPool = Arc<Pool<ConnectionMgrTcp>>;
@ -32,7 +30,7 @@ pub async fn api(req: Request<Incoming>, pool: DBPool) -> Json {
}
}
async fn auth(req: Request<Incoming>, pool: DBPool) -> Json {
async fn auth(req: Request<Incoming>, _pool: DBPool) -> Json {
let query = req.uri().query().or(Some("")).unwrap();
let query = double_split(query.to_string(), "&", "=");
let sess = std::string::String::from(query
@ -48,7 +46,7 @@ async fn auth(req: Request<Incoming>, pool: DBPool) -> Json {
}
}
async fn auth_get(req: Request<Incoming>, pool: DBPool) -> Json {
async fn auth_get(req: Request<Incoming>, _pool: DBPool) -> Json {
let query = req.uri().query().or(Some("")).unwrap();
let query = double_split(query.to_string(), "&", "=");
println!("{:?}", query);