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:
@@ -6,7 +6,10 @@
|
||||
|
||||
use axum::{
|
||||
extract::{ContentLengthLimit, Multipart},
|
||||
prelude::*,
|
||||
handler::get,
|
||||
response::Html,
|
||||
route,
|
||||
routing::RoutingDsl,
|
||||
};
|
||||
use std::net::SocketAddr;
|
||||
|
||||
@@ -31,8 +34,8 @@ async fn main() {
|
||||
.unwrap();
|
||||
}
|
||||
|
||||
async fn show_form() -> response::Html<&'static str> {
|
||||
response::Html(
|
||||
async fn show_form() -> Html<&'static str> {
|
||||
Html(
|
||||
r#"
|
||||
<!doctype html>
|
||||
<html>
|
||||
|
||||
Reference in New Issue
Block a user