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
+2 -2
View File
@@ -24,7 +24,7 @@ pub struct Payload<'a> {
}
impl<'a> Payload<'a> {
pub fn new(req: &Request<'a>, props: &'a dyn Serialize) -> Payload<'a> {
pub fn new(req: &Request, props: &'a dyn Serialize) -> Payload<'a> {
Payload {
router: req.location(),
props,
@@ -186,7 +186,7 @@ mod tests {
);
MANIFEST.get_or_init(|| manifest_mock);
let location = Location::from(
&uri.unwrap_or("http://localhost:3000/")
uri.unwrap_or("http://localhost:3000/")
.parse::<Uri>()
.unwrap(),
);