Fix all Errors n Warns
This commit is contained in:
@@ -1,3 +1,20 @@
|
||||
use {
|
||||
hyper::{
|
||||
Request,
|
||||
StatusCode,
|
||||
body::Incoming,
|
||||
header::HeaderValue,
|
||||
},
|
||||
crate::{
|
||||
Res,
|
||||
DBPool,
|
||||
SkyError,
|
||||
get_user,
|
||||
build_html,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
pub async fn user(req: Request<Incoming>, pool: DBPool) -> Res<(String, StatusCode, HeaderValue), SkyError> {
|
||||
let uri: &str = req.uri().path().as_ref();
|
||||
let login = &uri[2..uri.len()];
|
||||
|
||||
Reference in New Issue
Block a user