Skip to content

Commit

Permalink
style: rustfmt the mutlipart file
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Oct 29, 2024
1 parent 797df2b commit 55aee90
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/async_impl/multipart.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 55aee90

Please sign in to comment.