Remove unnecessary allow(dead_code) from testing example (#2117)

This commit is contained in:
Raphael Nestler 2023-07-25 19:30:19 +02:00 committed by GitHub
parent 7093cee0ac
commit b20e66e79a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,7 +33,6 @@ async fn main() {
/// Having a function that produces our app makes it easy to call it from tests
/// without having to create an HTTP server.
#[allow(dead_code)]
fn app() -> Router {
Router::new()
.route("/", get(|| async { "Hello, World!" }))