mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-22 07:08:16 +01:00
Remove unnecessary allow(dead_code) from testing example (#2117)
This commit is contained in:
parent
7093cee0ac
commit
b20e66e79a
1 changed files with 0 additions and 1 deletions
|
@ -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…
Reference in a new issue