From edcb71b1be4e7364d0f05f36dcd3fb35677d3807 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Mon, 11 Dec 2023 23:01:37 -0500 Subject: [PATCH] Remove some unused fields from `SimpleJson` (#612) --- crates/pypi-types/src/simple_json.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/crates/pypi-types/src/simple_json.rs b/crates/pypi-types/src/simple_json.rs index 2da8904e0..2d6352e13 100644 --- a/crates/pypi-types/src/simple_json.rs +++ b/crates/pypi-types/src/simple_json.rs @@ -8,9 +8,6 @@ use crate::lenient_requirement::LenientVersionSpecifiers; #[derive(Debug, Clone, Serialize, Deserialize)] pub struct SimpleJson { pub files: Vec, - pub meta: Meta, - pub name: String, - pub versions: Vec, } /// A single (remote) file belonging to a package, generally either a wheel or a source dist. @@ -88,11 +85,3 @@ impl Yanked { pub struct Hashes { pub sha256: String, } - -#[derive(Debug, Clone, Serialize, Deserialize)] -#[serde(rename_all = "kebab-case")] -pub struct Meta { - #[serde(rename = "_last-serial")] - pub last_serial: i64, - pub api_version: String, -}