From 1473a110aa00427d0411790866e6c607648f07be Mon Sep 17 00:00:00 2001 From: Blake Hildebrand Date: Thu, 11 Mar 2021 19:44:17 -0800 Subject: [PATCH] Fix broken link in readme The link to the basic example was pointing to the old directory structure. Also remove the explicit error definition. --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b748c586..e0abe94b 100644 --- a/README.md +++ b/README.md @@ -12,11 +12,9 @@ This package makes it easy to run AWS Lambda Functions written in Rust. This wor The code below creates a simple function that receives an event with a `firstName` field and returns a message to the caller. Notice: this crate is tested against latest stable Rust. ```rust,no_run -use lambda_runtime::{handler_fn, Context}; +use lambda_runtime::{handler_fn, Context, Error}; use serde_json::{json, Value}; -type Error = Box; - #[tokio::main] async fn main() -> Result<(), Error> { let func = handler_fn(func); @@ -31,7 +29,7 @@ async fn func(event: Value, _: Context) -> Result { } ``` -The code above is the same as the [basic example](https://github.com/awslabs/aws-lambda-rust-runtime/blob/master/lambda/examples/hello-without-macro.rs) in the `lambda_runtime` crate. +The code above is the same as the [basic example](https://github.com/awslabs/aws-lambda-rust-runtime/blob/master/lambda-runtime/examples/basic.rs) in the `lambda_runtime` crate. ### Deployment