From b20e66e79a8e14fbc412f16b448f20b5f4f350f6 Mon Sep 17 00:00:00 2001 From: Raphael Nestler Date: Tue, 25 Jul 2023 19:30:19 +0200 Subject: [PATCH] Remove unnecessary allow(dead_code) from testing example (#2117) --- examples/testing/src/main.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/testing/src/main.rs b/examples/testing/src/main.rs index 99cc0402cf..5ca2a0ce06 100644 --- a/examples/testing/src/main.rs +++ b/examples/testing/src/main.rs @@ -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!" }))