Remove axum::prelude (#195)

This commit is contained in:
Florian Thelliez
2021-08-18 00:04:15 +02:00
committed by GitHub
parent f083c3e97e
commit d9a06ef14b
43 changed files with 529 additions and 171 deletions
+3 -3
View File
@@ -4,7 +4,7 @@
//! cargo run --example hello_world
//! ```
use axum::prelude::*;
use axum::{handler::get, response::Html, route, routing::RoutingDsl};
use std::net::SocketAddr;
#[tokio::main]
@@ -27,6 +27,6 @@ async fn main() {
.unwrap();
}
async fn handler() -> response::Html<&'static str> {
response::Html("<h1>Hello, World!</h1>")
async fn handler() -> Html<&'static str> {
Html("<h1>Hello, World!</h1>")
}