From 840d2d3629c96003da713a78ca93891d6105ee4e Mon Sep 17 00:00:00 2001 From: Gentle Date: Wed, 13 Dec 2023 22:15:54 +0100 Subject: [PATCH] Axum removed the axum::Server re-export --- integrations/axum/src/lib.rs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/integrations/axum/src/lib.rs b/integrations/axum/src/lib.rs index 2eb9a9509b..d417fcfe64 100644 --- a/integrations/axum/src/lib.rs +++ b/integrations/axum/src/lib.rs @@ -196,8 +196,7 @@ pub async fn generate_request_and_parts( /// .route("/api/*fn_name", post(leptos_axum::handle_server_fns)); /// /// // run our app with hyper -/// // `axum::Server` is a re-export of `hyper::Server` -/// axum::Server::bind(&addr) +/// hyper::Server::bind(&addr) /// .serve(app.into_make_service()) /// .await /// .unwrap(); @@ -442,8 +441,7 @@ pub type PinnedHtmlStream = /// )); /// /// // run our app with hyper -/// // `axum::Server` is a re-export of `hyper::Server` -/// axum::Server::bind(&addr) +/// hyper::Server::bind(&addr) /// .serve(app.into_make_service()) /// .await /// .unwrap(); @@ -543,8 +541,7 @@ where /// )); /// /// // run our app with hyper -/// // `axum::Server` is a re-export of `hyper::Server` -/// axum::Server::bind(&addr) +/// hyper::Server::bind(&addr) /// .serve(app.into_make_service()) /// .await /// .unwrap(); @@ -1011,8 +1008,7 @@ fn provide_contexts( /// )); /// /// // run our app with hyper -/// // `axum::Server` is a re-export of `hyper::Server` -/// axum::Server::bind(&addr) +/// hyper::Server::bind(&addr) /// .serve(app.into_make_service()) /// .await /// .unwrap();