From 4308bb0ca936ab62564929bc7d8c15cddc2689fe Mon Sep 17 00:00:00 2001 From: Christian Ebner Date: Thu, 28 Nov 2024 17:07:19 +0100 Subject: [PATCH] api types: version: drop unused `repoid` field The `ApiVersion` type was introduced in commit ba850a25 ("api/api-types: refactor api endpoint version, add api types") including the `repoid`, added for completeness when converting from a pre-existing `ApiVersionInfo` instance, as returned by the `version` api endpoint. Drop the additional `repoid` field, since this is currently not used, can be obtained fro the `ApiVersionInfo` as well and only hinders the implementation for easy api version comparison. Signed-off-by: Christian Ebner --- pbs-api-types/src/version.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/pbs-api-types/src/version.rs b/pbs-api-types/src/version.rs index 80f87e37..bd4c517d 100644 --- a/pbs-api-types/src/version.rs +++ b/pbs-api-types/src/version.rs @@ -37,7 +37,6 @@ pub struct ApiVersion { pub major: ApiVersionMajor, pub minor: ApiVersionMinor, pub release: ApiVersionRelease, - pub repoid: String, } impl TryFrom for ApiVersion { @@ -64,7 +63,6 @@ impl TryFrom for ApiVersion { major, minor, release, - repoid: value.repoid.clone(), }) } }