Fix all Errors n Warns

This commit is contained in:
2024-07-15 08:30:27 +03:00
parent 9ef4176091
commit a60713a4b0
11 changed files with 119 additions and 128 deletions

View File

@ -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()];