Remove lifetime notation on Request (#12)

* feat: remove lifetime notation on Request

* feat: update version to v0.4.5
This commit is contained in:
Valerio Ageno
2024-07-09 19:00:48 +02:00
committed by GitHub
parent f62fc0b2b9
commit b412371287
16 changed files with 37 additions and 39 deletions
+3 -3
View File
@@ -7,10 +7,10 @@ pub async fn catch_all(
Path(params): Path<HashMap<String, String>>,
request: Request,
) -> Html<String> {
let pathname = &request.uri();
let headers = &request.headers();
let pathname = request.uri();
let headers = request.headers();
let req = crate::Request::new(pathname, headers, params);
let req = crate::Request::new(pathname.to_owned(), headers.to_owned(), params);
// TODO: remove unwrap
let payload = Payload::new(&req, &"").client_payload().unwrap();