From 1dbe8b2d4b6dcb5649cfc40a899c2f8fe01eaf0b Mon Sep 17 00:00:00 2001 From: Greg Johnston Date: Fri, 9 Feb 2024 17:18:44 -0500 Subject: [PATCH] fix: correct feature name for `server-fn-macro` crate (broken in #2270) --- server_fn_macro/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server_fn_macro/src/lib.rs b/server_fn_macro/src/lib.rs index a550398b4..e17d489c8 100644 --- a/server_fn_macro/src/lib.rs +++ b/server_fn_macro/src/lib.rs @@ -434,7 +434,7 @@ pub fn server_macro_impl( quote! { #server_fn_path::request::BrowserMockReq } - } else if cfg!(feature = "axum-no-default") { + } else if cfg!(feature = "axum") { quote! { #server_fn_path::axum_export::http::Request<#server_fn_path::axum_export::body::Body> } @@ -458,7 +458,7 @@ pub fn server_macro_impl( quote! { #server_fn_path::response::BrowserMockRes } - } else if cfg!(feature = "axum-no-default") { + } else if cfg!(feature = "axum") { quote! { #server_fn_path::axum_export::http::Response<#server_fn_path::axum_export::body::Body> }