CTTY commented on code in PR #3106:
URL: https://github.com/apache/iceberg-rust/pull/3106#discussion_r4766730348


##########
crates/catalog/rest/src/catalog.rs:
##########
@@ -1718,24 +1335,18 @@ impl SessionCatalog for RestSessionCatalog {
 /// [`SessionContext`] with each [`SessionCatalog`] operation.
 #[derive(Debug)]
 pub struct RestSessionCatalogBuilder {
-    config: RestCatalogConfig,
+    client: Option<Client>,
     auth_manager: Option<Box<dyn AuthManager>>,
     storage_factory: Option<Arc<dyn StorageFactory>>,
     kms_client_factory: Option<Arc<dyn KmsClientFactory>>,
     runtime: Option<Runtime>,
 }
 
+#[allow(clippy::derivable_impls)]

Review Comment:
   We can remove impl Default and derive(Default) directly



##########
crates/catalog/rest/public-api.txt:
##########
@@ -302,7 +302,6 @@ pub struct iceberg_catalog_rest::RestCatalogBuilder
 impl iceberg_catalog_rest::RestCatalogBuilder
 pub fn iceberg_catalog_rest::RestCatalogBuilder::with_auth_manager<M>(self, 
auth_manager: M) -> Self where M: iceberg_catalog_rest::AuthManager + 'static
 pub fn iceberg_catalog_rest::RestCatalogBuilder::with_client(self, client: 
reqwest::async_impl::client::Client) -> Self
-pub fn iceberg_catalog_rest::RestCatalogBuilder::with_page_size(self, 
page_size: core::num::nonzero::NonZeroU32) -> Self

Review Comment:
   This looks like a breaking change that worth mentioning in the CHANGELOG?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to