From c4b148459df3ec501e297c0b46c0eaced5143490 Mon Sep 17 00:00:00 2001 From: Maybe Waffle Date: Sat, 20 Nov 2021 19:33:22 +0300 Subject: [PATCH] Add regression test for issue 473 --- Cargo.toml | 1 + src/serde_multipart/mod.rs | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index aa1da107..399f3d0b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -58,6 +58,7 @@ bitflags = { version = "1.2", optional = true } [dev-dependencies] pretty_env_logger = "0.4" +tokio = { version = "1.8.0", features = ["fs", "macros"] } [features] default = ["native-tls"] diff --git a/src/serde_multipart/mod.rs b/src/serde_multipart/mod.rs index dcee7ef1..3eae3aa9 100644 --- a/src/serde_multipart/mod.rs +++ b/src/serde_multipart/mod.rs @@ -29,3 +29,22 @@ pub(crate) fn to_form(val: &T) -> impl Future