Fix hashes not showing (#496)

* Fix hashes not showing

* Run prepare + fmt
This commit is contained in:
Geometrically
2022-12-08 15:42:59 -07:00
committed by GitHub
parent d8b9d8431e
commit a5f9331023
3 changed files with 12 additions and 23 deletions

View File

@@ -642,11 +642,11 @@ impl Version {
.map(|x| VersionStatus::from_str(&x)),
},
files: {
#[derive(Deserialize)]
#[derive(Deserialize, Debug)]
struct Hash {
pub file_id: FileId,
pub algorithm: String,
pub hash: Vec<u8>,
pub hash: String,
}
#[derive(Deserialize, Debug)]
@@ -795,7 +795,7 @@ impl Version {
struct Hash {
pub file_id: FileId,
pub algorithm: String,
pub hash: Vec<u8>,
pub hash: String,
}
#[derive(Deserialize)]
@@ -907,7 +907,7 @@ pub struct QueryFile {
pub id: FileId,
pub url: String,
pub filename: String,
pub hashes: HashMap<String, Vec<u8>>,
pub hashes: HashMap<String, String>,
pub primary: bool,
pub size: u32,
}