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

This commit is contained in:
Raphael Nestler
2023-07-25 17:30:19 +00:00
committed by GitHub
parent 7093cee0ac
commit b20e66e79a
-1
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!" }))