Skip to content

Commit

Permalink
rust: Remove unused optional PostOptions parameters from non-POST met…
Browse files Browse the repository at this point in the history
…hods
  • Loading branch information
svix-jplatte committed Dec 10, 2024
1 parent 6ec657d commit 57d12df
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
4 changes: 3 additions & 1 deletion ChangeLog.md
Original file line number Diff line number Diff line change
@@ -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])
Expand Down
8 changes: 0 additions & 8 deletions rust/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,6 @@ impl<'a> Application<'a> {
&self,
app_id: String,
application_in: ApplicationIn,
_: Option<PostOptions>,
) -> Result<ApplicationOut> {
application_api::v1_period_application_period_update(
self.cfg,
Expand All @@ -328,7 +327,6 @@ impl<'a> Application<'a> {
&self,
app_id: String,
application_patch: ApplicationPatch,
_: Option<PostOptions>,
) -> Result<ApplicationOut> {
application_api::v1_period_application_period_patch(
self.cfg,
Expand Down Expand Up @@ -427,7 +425,6 @@ impl<'a> Endpoint<'a> {
app_id: String,
endpoint_id: String,
endpoint_update: EndpointUpdate,
_: Option<PostOptions>,
) -> Result<EndpointOut> {
endpoint_api::v1_period_endpoint_period_update(
self.cfg,
Expand All @@ -445,7 +442,6 @@ impl<'a> Endpoint<'a> {
app_id: String,
endpoint_id: String,
endpoint_patch: EndpointPatch,
_: Option<PostOptions>,
) -> Result<EndpointOut> {
endpoint_api::v1_period_endpoint_period_patch(
self.cfg,
Expand Down Expand Up @@ -733,7 +729,6 @@ impl<'a> Integration<'a> {
app_id: String,
integ_id: String,
integration_update: IntegrationUpdate,
_: Option<PostOptions>,
) -> Result<IntegrationOut> {
integration_api::v1_period_integration_period_update(
self.cfg,
Expand Down Expand Up @@ -843,7 +838,6 @@ impl<'a> EventType<'a> {
&self,
event_type_name: String,
event_type_update: EventTypeUpdate,
_: Option<PostOptions>,
) -> Result<EventTypeOut> {
event_type_api::v1_period_event_type_period_update(
self.cfg,
Expand All @@ -859,7 +853,6 @@ impl<'a> EventType<'a> {
&self,
event_type_name: String,
event_type_patch: EventTypePatch,
_: Option<PostOptions>,
) -> Result<EventTypeOut> {
event_type_api::v1_period_event_type_period_patch(
self.cfg,
Expand Down Expand Up @@ -1346,7 +1339,6 @@ impl<'a> OperationalWebhookEndpoint<'a> {
&self,
endpoint_id: String,
endpoint_update: OperationalWebhookEndpointUpdate,
_: Option<PostOptions>,
) -> Result<OperationalWebhookEndpointOut> {
operational_webhook_endpoint_api::update_operational_webhook_endpoint(
self.cfg,
Expand Down
1 change: 0 additions & 1 deletion rust/tests/kitchen_sink.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ async fn test_endpoint_crud() {
])),
..Default::default()
},
None,
)
.await
.unwrap();
Expand Down

0 comments on commit 57d12df

Please sign in to comment.