Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Ptrskay3 committed Sep 7, 2023
1 parent 80dcebc commit 439f714
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion axum1/src/upload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ pub async fn accept_form(
.await
.context("Failed to get next field")?
{
let Some(file_name) = field.file_name().map(ToOwned::to_owned) else { continue };
let Some(file_name) = field.file_name().map(ToOwned::to_owned) else {
continue;
};

stream_to_file(&file_name, uploader.id, field, &mut *tx).await?;
}
Expand Down

0 comments on commit 439f714

Please sign in to comment.