Skip to content

Commit cda4a4d

Browse files
committed
fix: all tests pass
1 parent d5cb171 commit cda4a4d

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

lambda-events/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,3 +129,6 @@ catch-all-fields = []
129129

130130
[package.metadata.docs.rs]
131131
all-features = true
132+
133+
[dev-dependencies]
134+
lambda_runtime = { path = "../lambda-runtime" }

lambda-events/src/event/sqs/mod.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,6 @@ impl SqsBatchResponse {
197197
/// // Your message processing logic here
198198
/// Ok(())
199199
/// }
200-
///
201-
/// #[tokio::main]
202-
/// async fn main() -> Result<(), Error> {
203-
/// lambda_runtime::run(service_fn(function_handler)).await
204-
/// }
205200
/// ```
206201
pub fn add_failure(&mut self, message_id: impl Into<String>) {
207202
self.batch_item_failures.push(BatchItemFailure {
@@ -251,11 +246,6 @@ impl SqsBatchResponse {
251246
/// // Your message processing logic here
252247
/// Ok(())
253248
/// }
254-
///
255-
/// #[tokio::main]
256-
/// async fn main() -> Result<(), Error> {
257-
/// lambda_runtime::run(service_fn(function_handler)).await
258-
/// }
259249
/// ```
260250
pub fn set_failures<I, S>(&mut self, message_ids: I)
261251
where

0 commit comments

Comments
 (0)