Skip to content

Commit 6eb22bd

Browse files
authored
server: Silence dead_code warnings for a few test struct fields (#1303)
1 parent 4e352ea commit 6eb22bd

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

server/svix-server/tests/it/e2e_operational_webhooks.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ use crate::utils::{
3434
/// Sent when an endpoint has been automatically disabled after continuous failures.
3535
#[derive(Debug, Deserialize)]
3636
#[serde(rename_all = "camelCase")]
37+
#[allow(dead_code)]
3738
pub struct EndpointDisabledEvent {
3839
pub app_id: ApplicationId,
3940
pub app_uid: Option<ApplicationUid>,
@@ -54,6 +55,7 @@ pub struct EndpointEvent {
5455

5556
#[derive(Debug, Deserialize)]
5657
#[serde(rename_all = "camelCase")]
58+
#[allow(dead_code)]
5759
pub struct MessageAttempetLast {
5860
pub id: MessageAttemptId,
5961
pub response_status_code: i16,
@@ -65,6 +67,7 @@ pub struct MessageAttempetLast {
6567
/// event.
6668
#[derive(Debug, Deserialize)]
6769
#[serde(rename_all = "camelCase")]
70+
#[allow(dead_code)]
6871
pub struct MessageAttemptEvent {
6972
pub app_id: ApplicationId,
7073
pub app_uid: Option<ApplicationUid>,
@@ -76,6 +79,7 @@ pub struct MessageAttemptEvent {
7679

7780
#[derive(Debug, Deserialize)]
7881
#[serde(tag = "type", content = "data")]
82+
#[allow(dead_code)]
7983
pub enum OperationalWebhookTest {
8084
#[serde(rename = "endpoint.disabled")]
8185
EndpointDisabled(EndpointDisabledEvent),

server/svix-server/tests/it/integ_webhook_http_client.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ use serde::{Deserialize, Serialize};
77
use svix_server::core::webhook_http_client::{Error, RequestBuilder, WebhookClient};
88
use tokio::sync::mpsc;
99

10+
#[allow(dead_code)]
1011
pub struct TestReceiver {
1112
pub uri: String,
1213
pub jh: tokio::task::JoinHandle<()>,

0 commit comments

Comments
 (0)