移除文件保存不校验的问题

This commit is contained in:
李运家 2024-09-30 15:17:15 +08:00
parent 94cb27d1e7
commit 7024a4f19d
2 changed files with 1 additions and 4 deletions

View File

@ -1,3 +0,0 @@
{
"rust-analyzer.checkOnSave": false
}

View File

@ -20,8 +20,8 @@ where
async fn from_request(req: http::Request<Body>, state: &S) -> Result<Self, Self::Rejection> {
let (parts, body) = req.into_parts();
let query = Query::<T>::from_request(Request::from_parts(parts.clone(), body), state).await;
let header = &parts.headers;
let query = Query::<T>::from_request(Request::from_parts(parts.clone(), body), state).await;
if let Ok(Query(data)) = query {
match data.validate() {