fix formatting

This commit is contained in:
Evan Almloff 2023-09-17 19:01:20 -05:00
parent 070ef6aec9
commit 4691046e23

View file

@ -143,7 +143,7 @@ pub fn register_server_fns(server_fn_route: &'static str) -> BoxedFilter<(impl R
let req = warp::hyper::Request::from_parts(parts, bytes.into()); let req = warp::hyper::Request::from_parts(parts, bytes.into());
service.run(req).await.map_err(|err| { service.run(req).await.map_err(|err| {
tracing::error!("Server function error: {}", err); tracing::error!("Server function error: {}", err);
struct WarpServerFnError(String); struct WarpServerFnError(String);
impl std::fmt::Debug for WarpServerFnError { impl std::fmt::Debug for WarpServerFnError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
@ -152,7 +152,7 @@ pub fn register_server_fns(server_fn_route: &'static str) -> BoxedFilter<(impl R
} }
impl warp::reject::Reject for WarpServerFnError {} impl warp::reject::Reject for WarpServerFnError {}
warp::reject::custom(WarpServerFnError(err.to_string())) warp::reject::custom(WarpServerFnError(err.to_string()))
}) })
} }