Bump multer from v1.2.2 to v2.0.0

This commit is contained in:
Sunli 2021-06-07 14:07:53 +08:00
parent e886e823b9
commit 588a7e40e8
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ serde_json = "1.0.64"
thiserror = "1.0.24"
static_assertions = "1.1.0"
http = "0.2.3"
multer = "1.2.2"
multer = "2.0.0"
tempfile = "3.2.0"
# Feature optional dependencies

View File

@ -43,7 +43,7 @@ pub(super) async fn receive_batch_multipart(
boundary: impl Into<String>,
opts: MultipartOptions,
) -> Result<BatchRequest, ParseRequestError> {
let mut multipart = Multipart::new_with_constraints(
let mut multipart = Multipart::with_constraints(
ReaderStream::new(body),
boundary,
Constraints::new().size_limit({