diff --git a/src/async_impl/multipart.rs b/src/async_impl/multipart.rs index ac4b8b981..df4dc1272 100644 --- a/src/async_impl/multipart.rs +++ b/src/async_impl/multipart.rs @@ -270,8 +270,9 @@ impl Part { let len = file.metadata().await.map(|m| m.len()).ok(); let field = match len { Some(len) => Part::stream_with_length(file, len), - None => Part::stream(file) - }.mime(mime); + None => Part::stream(file), + } + .mime(mime); Ok(if let Some(file_name) = file_name { field.file_name(file_name)