Minimize warnin's
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user