mirror of
https://github.com/tokio-rs/axum.git
synced 2025-10-02 23:34:47 +00:00
Remove unnecessary allow(dead_code) from testing example (#2117)
This commit is contained in:
parent
7093cee0ac
commit
b20e66e79a
@ -33,7 +33,6 @@ async fn main() {
|
|||||||
|
|
||||||
/// Having a function that produces our app makes it easy to call it from tests
|
/// Having a function that produces our app makes it easy to call it from tests
|
||||||
/// without having to create an HTTP server.
|
/// without having to create an HTTP server.
|
||||||
#[allow(dead_code)]
|
|
||||||
fn app() -> Router {
|
fn app() -> Router {
|
||||||
Router::new()
|
Router::new()
|
||||||
.route("/", get(|| async { "Hello, World!" }))
|
.route("/", get(|| async { "Hello, World!" }))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user