From 57d12dfa5c4767d8ee97a3fb981c05b8726b1982 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Tue, 10 Dec 2024 16:58:03 -0500 Subject: [PATCH] rust: Remove unused optional PostOptions parameters from non-POST methods --- ChangeLog.md | 4 +++- rust/src/api.rs | 8 -------- rust/tests/kitchen_sink.rs | 1 - 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/ChangeLog.md b/ChangeLog.md index 52a8fa0be..f610ccb3e 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,7 +1,9 @@ # Changelog ## Next -* +* Libs/Rust: Remove unused optional `PostOptions` parameters from non-POST methods ([#1557]) + +[#1557]: https://github.com/svix/svix-webhooks/pull/1557 ## Version 1.43.0 * Libs/Go: Add convenient construction of messages with pre-serialized payload ([#1538]) diff --git a/rust/src/api.rs b/rust/src/api.rs index 3716acc3d..9f14f9520 100644 --- a/rust/src/api.rs +++ b/rust/src/api.rs @@ -312,7 +312,6 @@ impl<'a> Application<'a> { &self, app_id: String, application_in: ApplicationIn, - _: Option, ) -> Result { application_api::v1_period_application_period_update( self.cfg, @@ -328,7 +327,6 @@ impl<'a> Application<'a> { &self, app_id: String, application_patch: ApplicationPatch, - _: Option, ) -> Result { application_api::v1_period_application_period_patch( self.cfg, @@ -427,7 +425,6 @@ impl<'a> Endpoint<'a> { app_id: String, endpoint_id: String, endpoint_update: EndpointUpdate, - _: Option, ) -> Result { endpoint_api::v1_period_endpoint_period_update( self.cfg, @@ -445,7 +442,6 @@ impl<'a> Endpoint<'a> { app_id: String, endpoint_id: String, endpoint_patch: EndpointPatch, - _: Option, ) -> Result { endpoint_api::v1_period_endpoint_period_patch( self.cfg, @@ -733,7 +729,6 @@ impl<'a> Integration<'a> { app_id: String, integ_id: String, integration_update: IntegrationUpdate, - _: Option, ) -> Result { integration_api::v1_period_integration_period_update( self.cfg, @@ -843,7 +838,6 @@ impl<'a> EventType<'a> { &self, event_type_name: String, event_type_update: EventTypeUpdate, - _: Option, ) -> Result { event_type_api::v1_period_event_type_period_update( self.cfg, @@ -859,7 +853,6 @@ impl<'a> EventType<'a> { &self, event_type_name: String, event_type_patch: EventTypePatch, - _: Option, ) -> Result { event_type_api::v1_period_event_type_period_patch( self.cfg, @@ -1346,7 +1339,6 @@ impl<'a> OperationalWebhookEndpoint<'a> { &self, endpoint_id: String, endpoint_update: OperationalWebhookEndpointUpdate, - _: Option, ) -> Result { operational_webhook_endpoint_api::update_operational_webhook_endpoint( self.cfg, diff --git a/rust/tests/kitchen_sink.rs b/rust/tests/kitchen_sink.rs index 8dd58a0f5..7e6a8c286 100644 --- a/rust/tests/kitchen_sink.rs +++ b/rust/tests/kitchen_sink.rs @@ -111,7 +111,6 @@ async fn test_endpoint_crud() { ])), ..Default::default() }, - None, ) .await .unwrap();