From 9ed9f98ca52076a226daeca4ef861cd1fd0ee8eb Mon Sep 17 00:00:00 2001 From: Raphael Nestler Date: Tue, 25 Jul 2023 19:09:50 +0200 Subject: [PATCH] Remove unnecessary allow(dead_code) from testing example --- 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!" }))