style: apply rustfmt formatting

This commit is contained in:
daimond113 2024-10-30 20:08:13 +01:00
parent 699727793e
commit 4b623da2db
No known key found for this signature in database
GPG key ID: 3A8ECE51328B513C

View file

@ -4,8 +4,11 @@ use actix_web::{
HttpResponse, HttpResponse,
}; };
use pesde::{names::PackageName, source::version_id::VersionId}; use pesde::{names::PackageName, source::version_id::VersionId};
use std::{fmt::Display, fs::create_dir_all, path::PathBuf}; use std::{
use std::path::Path; fmt::Display,
fs::create_dir_all,
path::{Path, PathBuf},
};
#[derive(Debug)] #[derive(Debug)]
pub struct FSStorage { pub struct FSStorage {
@ -58,7 +61,7 @@ impl StorageImpl for FSStorage {
.join(name) .join(name)
.join(version.version().to_string()) .join(version.version().to_string())
.join(version.target().to_string()); .join(version.target().to_string());
read_file_to_response(&path.join("pkg.tar.gz"), "application/gzip") read_file_to_response(&path.join("pkg.tar.gz"), "application/gzip")
} }