From a76eaf50ce6b3f6410a4c740e939520816a64bbd Mon Sep 17 00:00:00 2001 From: Nicholas Cioli Date: Tue, 5 Mar 2024 14:59:35 -0500 Subject: [PATCH] fix formatting --- apollo-router/tests/integration/file_upload.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/apollo-router/tests/integration/file_upload.rs b/apollo-router/tests/integration/file_upload.rs index 5969d89f46..d1ff7a97c8 100644 --- a/apollo-router/tests/integration/file_upload.rs +++ b/apollo-router/tests/integration/file_upload.rs @@ -1200,7 +1200,9 @@ mod helper { } /// Handler that echos back the contents of the list of files that it receives - pub async fn echo_file_list(mut request: Request) -> Result, FileUploadError> { + pub async fn echo_file_list( + mut request: Request, + ) -> Result, FileUploadError> { let (operation, map, mut multipart) = decode_request(&mut request).await?; // Make sure that we have some mappings @@ -1247,12 +1249,10 @@ mod helper { let file_name = f.file_name().unwrap_or(field_name).to_string(); let body = f.bytes().await?; - files.push( - Upload { - filename: Some(file_name), - body: Some(String::from_utf8_lossy(&body).to_string()), - }, - ); + files.push(Upload { + filename: Some(file_name), + body: Some(String::from_utf8_lossy(&body).to_string()), + }); } Ok(Json(json!({