From 4b623da2dbbdb09321f08ff8171bfba78a51959c Mon Sep 17 00:00:00 2001 From: daimond113 <72147841+daimond113@users.noreply.github.com> Date: Wed, 30 Oct 2024 20:08:13 +0100 Subject: [PATCH] style: apply rustfmt formatting --- registry/src/storage/fs.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/registry/src/storage/fs.rs b/registry/src/storage/fs.rs index 39d41aa..9b3c21c 100644 --- a/registry/src/storage/fs.rs +++ b/registry/src/storage/fs.rs @@ -4,8 +4,11 @@ use actix_web::{ HttpResponse, }; use pesde::{names::PackageName, source::version_id::VersionId}; -use std::{fmt::Display, fs::create_dir_all, path::PathBuf}; -use std::path::Path; +use std::{ + fmt::Display, + fs::create_dir_all, + path::{Path, PathBuf}, +}; #[derive(Debug)] pub struct FSStorage { @@ -58,7 +61,7 @@ impl StorageImpl for FSStorage { .join(name) .join(version.version().to_string()) .join(version.target().to_string()); - + read_file_to_response(&path.join("pkg.tar.gz"), "application/gzip") }