From 725f661f723fb5f64c2a62da6cfcd3cd7b9d4f4d Mon Sep 17 00:00:00 2001 From: Diocrafts Date: Sat, 11 Apr 2026 16:19:49 +0200 Subject: [PATCH] style: fix cargo fmt formatting in dedup_handler --- src/interfaces/api/handlers/dedup_handler.rs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/interfaces/api/handlers/dedup_handler.rs b/src/interfaces/api/handlers/dedup_handler.rs index ba0a84f6..49a5c355 100644 --- a/src/interfaces/api/handlers/dedup_handler.rs +++ b/src/interfaces/api/handlers/dedup_handler.rs @@ -180,9 +180,10 @@ impl DedupHandler { Ok(Some(chunk)) => { total_size += chunk.len() as u64; hasher.update(&chunk); - writer.write_all(&chunk).await.map_err(|e| { - format!("Failed to write chunk: {}", e) - })?; + writer + .write_all(&chunk) + .await + .map_err(|e| format!("Failed to write chunk: {}", e))?; } Ok(None) => break, Err(e) => { @@ -208,10 +209,7 @@ impl DedupHandler { return Response::builder() .status(StatusCode::BAD_REQUEST) .header(header::CONTENT_TYPE, "application/json") - .body(Body::from(format!( - r#"{{"error": "{}"}}"#, - msg - ))) + .body(Body::from(format!(r#"{{"error": "{}"}}"#, msg))) .unwrap() .into_response(); }