makes clippy turbo-happy

This commit is contained in:
Tamo 2023-01-09 13:04:31 +01:00
parent d17efb9ed6
commit b03ee54fe0
No known key found for this signature in database
GPG Key ID: 20CD8020AFA88D69
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ where
#[inline]
fn from_request(req: &HttpRequest, _: &mut Payload) -> Self::Future {
QueryParameter::from_query(&req.query_string()).map(ok).unwrap_or_else(err)
QueryParameter::from_query(req.query_string()).map(ok).unwrap_or_else(err)
// serde_urlencoded::from_str::<serde_json::Value>(req.query_string())
// .map(|val| Ok(QueryParameter(val, PhantomData)))
// .unwrap_or_else(|e| err(ResponseError::from_msg(e.to_string(), Code::BadRequest)))