]> git.proxmox.com Git - proxmox.git/commitdiff
REST: rust fmt
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 3 Jul 2021 19:05:25 +0000 (21:05 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 3 Jul 2021 19:34:03 +0000 (21:34 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/server/rest.rs

index 7d280477bffe5e398420a9d5797b868fc28af9db..2648217e91a388b9b912d420b2cff08dac8ac587 100644 (file)
@@ -561,7 +561,8 @@ async fn simple_static_file_download(
     let mut response = match compression {
         Some(CompressionMethod::Deflate) => {
             let mut enc = DeflateEncoder::with_quality(data, Level::Default);
-            enc.compress_vec(&mut file, CHUNK_SIZE_LIMIT as usize).await?;
+            enc.compress_vec(&mut file, CHUNK_SIZE_LIMIT as usize)
+                .await?;
             let mut response = Response::new(enc.into_inner().into());
             response.headers_mut().insert(
                 header::CONTENT_ENCODING,