From 439f7145c36d73cbeb8b6553ae62bf5f32e318f5 Mon Sep 17 00:00:00 2001 From: peter leeh Date: Thu, 7 Sep 2023 20:48:48 +0200 Subject: [PATCH] cargo fmt --- axum1/src/upload.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/axum1/src/upload.rs b/axum1/src/upload.rs index efc7569..7118ad3 100644 --- a/axum1/src/upload.rs +++ b/axum1/src/upload.rs @@ -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?; }