Skip to content
This repository has been archived by the owner on Jun 21, 2020. It is now read-only.

Commit

Permalink
Merge pull request #40 from secretfader/remove-async-closure
Browse files Browse the repository at this point in the history
Refactor example that required the async_closure feature flag
  • Loading branch information
Nicholas Young committed Jul 15, 2019
2 parents bd37172 + 198379a commit a61fdda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http-service-lambda/examples/hello_world.rs
Expand Up @@ -13,7 +13,7 @@ fn main() {
.header("X-Server", "Tide"),
);

app.at("/").get(async move |_| "Hello, world!");
app.at("/").get(|_| async move { "Hello, world!" });

http_service_lambda::run(app.into_http_service());
}

0 comments on commit a61fdda

Please sign in to comment.