From 9195a5de18e11865e95d906314de418ec6f9c772 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Thu, 10 Nov 2022 10:44:05 +0100 Subject: [PATCH] api: Make VersionHistory fields private --- crates/ruma-common/src/api/metadata.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/ruma-common/src/api/metadata.rs b/crates/ruma-common/src/api/metadata.rs index 756e0904..2a202c4f 100644 --- a/crates/ruma-common/src/api/metadata.rs +++ b/crates/ruma-common/src/api/metadata.rs @@ -136,12 +136,12 @@ pub struct VersionHistory { /// A list of unstable paths over this endpoint's history. /// /// For endpoint querying purposes, the last item will be used. - pub unstable_paths: &'static [&'static str], + unstable_paths: &'static [&'static str], /// A list of path versions, mapped to Matrix versions. /// /// Sorted (ascending) by Matrix version, will not mix major versions. - pub stable_paths: &'static [(MatrixVersion, &'static str)], + stable_paths: &'static [(MatrixVersion, &'static str)], /// The Matrix version that deprecated this endpoint. /// @@ -149,13 +149,13 @@ pub struct VersionHistory { /// /// This will make [`try_into_http_request`](super::OutgoingRequest::try_into_http_request) /// emit a warning, see the corresponding documentation for more information. - pub deprecated: Option, + deprecated: Option, /// The Matrix version that removed this endpoint. /// /// This will make [`try_into_http_request`](super::OutgoingRequest::try_into_http_request) /// emit an error, see the corresponding documentation for more information. - pub removed: Option, + removed: Option, } impl VersionHistory {