mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-27 00:00:24 +02:00
Remove axum::prelude (#195)
This commit is contained in:
@@ -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>")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user