From 77c3a67029481c3d78c4e4a3e4bfabaa9d86c33b Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Sat, 6 Jan 2024 17:05:18 -0500 Subject: [PATCH] Remove `pub(crate)` from `RegistryClient` fields (#821) --- crates/puffin-client/src/registry_client.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/crates/puffin-client/src/registry_client.rs b/crates/puffin-client/src/registry_client.rs index a3ff59e9c..c1ec6cf6f 100644 --- a/crates/puffin-client/src/registry_client.rs +++ b/crates/puffin-client/src/registry_client.rs @@ -93,20 +93,21 @@ impl RegistryClientBuilder { } /// A client for fetching packages from a `PyPI`-compatible index. -// TODO(konstin): Clean up the clients once we moved everything to common caching. #[derive(Debug, Clone)] pub struct RegistryClient { /// The index URLs to use for fetching packages. - pub(crate) index_urls: IndexUrls, - pub(crate) client: CachedClient, + index_urls: IndexUrls, + /// The underlying HTTP client. + client: CachedClient, /// Don't use this client, it only exists because `async_http_range_reader` needs /// [`reqwest::Client] instead of [`reqwest_middleware::Client`] - pub(crate) client_raw: Client, + client_raw: Client, /// Used for the remote wheel METADATA cache - pub(crate) cache: Cache, + cache: Cache, } impl RegistryClient { + /// Return the [`CachedClient`] used by this client. pub fn cached_client(&self) -> &CachedClient { &self.client }