feat: update garde to 0.20.0

This commit is contained in:
gengteng
2024-07-12 20:31:17 +08:00
parent a4395e091d
commit f8c1daeeb0
21 changed files with 32 additions and 32 deletions

View File

@@ -93,7 +93,7 @@ where
.await
.map_err(GardeRejection::Inner)?;
inner.get_validate().validate(&context)?;
inner.get_validate().validate_with(&context)?;
Ok(Garde(inner))
}
}
@@ -113,7 +113,7 @@ where
let inner = Extractor::from_request_parts(parts, state)
.await
.map_err(GardeRejection::Inner)?;
inner.get_validate().validate(&context)?;
inner.get_validate().validate_with(&context)?;
Ok(Garde(inner))
}
}