From 2d8466fdb5e22a7fb19eefccb50f84d129d095de Mon Sep 17 00:00:00 2001 From: Greg Johnston Date: Wed, 2 Oct 2024 20:22:38 -0400 Subject: [PATCH] add a generic example --- examples/server_fns_axum/src/app.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/server_fns_axum/src/app.rs b/examples/server_fns_axum/src/app.rs index 59053513e3..8423a587b9 100644 --- a/examples/server_fns_axum/src/app.rs +++ b/examples/server_fns_axum/src/app.rs @@ -12,12 +12,12 @@ use server_fn::{ request::{browser::BrowserRequest, ClientReq, Req}, response::{browser::BrowserResponse, ClientRes, Res}, }; +use std::future::Future; #[cfg(feature = "ssr")] use std::sync::{ atomic::{AtomicU8, Ordering}, Mutex, }; -use std::{fmt::Display, future::Future}; use strum::{Display, EnumString}; use wasm_bindgen::JsCast; use web_sys::{FormData, HtmlFormElement, SubmitEvent}; @@ -103,9 +103,9 @@ pub fn Generic() -> impl IntoView {

"Open your browser devtools to see which endpoints the function below calls."