From 52cde4fb67105274fa9e3d2f6963a5de37e415ff Mon Sep 17 00:00:00 2001 From: Mats Larsen Date: Tue, 17 Sep 2024 20:20:20 +0200 Subject: [PATCH 1/2] fix: expose CloudWatchMetricAlarm and CloudWatchCompositeAlarm These types are referred to by the CloudWatchAlarm type, but they previously not exported by the crate and left unused in its module. --- lambda-events/src/event/cloudwatch_alarms/mod.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lambda-events/src/event/cloudwatch_alarms/mod.rs b/lambda-events/src/event/cloudwatch_alarms/mod.rs index 5c4b704d..11b9ff70 100644 --- a/lambda-events/src/event/cloudwatch_alarms/mod.rs +++ b/lambda-events/src/event/cloudwatch_alarms/mod.rs @@ -36,12 +36,10 @@ where } /// `CloudWatchMetricAlarm` is the structure of an event triggered by CloudWatch metric alarms. -#[allow(unused)] -type CloudWatchMetricAlarm = CloudWatchAlarm; +pub type CloudWatchMetricAlarm = CloudWatchAlarm; /// `CloudWatchCompositeAlarm` is the structure of an event triggered by CloudWatch composite alarms. -#[allow(unused)] -type CloudWatchCompositeAlarm = +pub type CloudWatchCompositeAlarm = CloudWatchAlarm; #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] From 543d814ea95c6053f750fb289569aa326f5db3ea Mon Sep 17 00:00:00 2001 From: Mats Larsen Date: Tue, 17 Sep 2024 20:22:52 +0200 Subject: [PATCH 2/2] chore: apply rustfmt --- lambda-events/src/event/cloudwatch_alarms/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lambda-events/src/event/cloudwatch_alarms/mod.rs b/lambda-events/src/event/cloudwatch_alarms/mod.rs index 11b9ff70..01174566 100644 --- a/lambda-events/src/event/cloudwatch_alarms/mod.rs +++ b/lambda-events/src/event/cloudwatch_alarms/mod.rs @@ -36,7 +36,8 @@ where } /// `CloudWatchMetricAlarm` is the structure of an event triggered by CloudWatch metric alarms. -pub type CloudWatchMetricAlarm = CloudWatchAlarm; +pub type CloudWatchMetricAlarm = + CloudWatchAlarm; /// `CloudWatchCompositeAlarm` is the structure of an event triggered by CloudWatch composite alarms. pub type CloudWatchCompositeAlarm =