style: fix cargo fmt formatting in dedup_handler

This commit is contained in:
Diocrafts
2026-04-11 16:19:49 +02:00
parent 81f33458e0
commit 725f661f72
+5 -7
View File
@@ -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();
}