From 2dd2832e043eb5380c91cf80f3e78a700d204be3 Mon Sep 17 00:00:00 2001 From: Aiden McClelland Date: Mon, 10 Nov 2025 18:56:54 -0700 Subject: [PATCH] flatten inlining --- src/handler/from_fn.rs | 12 ++++++------ src/handler/parent.rs | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/handler/from_fn.rs b/src/handler/from_fn.rs index 250ea34..0f672c4 100644 --- a/src/handler/from_fn.rs +++ b/src/handler/from_fn.rs @@ -58,8 +58,8 @@ where fn type_info(&self) -> Option { Some(format!( "{{_PARAMS:{},_RETURN:{}}}", - ::Params::inline(), - ::Ok::inline(), + ::Params::inline_flattened(), + ::Ok::inline_flattened(), )) } } @@ -183,8 +183,8 @@ where fn type_info(&self) -> Option { Some(format!( "{{_PARAMS:{},_RETURN:{}}}", - ::Params::inline(), - ::Ok::inline(), + ::Params::inline_flattened(), + ::Ok::inline_flattened(), )) } } @@ -295,8 +295,8 @@ where fn type_info(&self) -> Option { Some(format!( "{{_PARAMS:{},_RETURN:{}}}", - ::Params::inline(), - ::Ok::inline(), + ::Params::inline_flattened(), + ::Ok::inline_flattened(), )) } } diff --git a/src/handler/parent.rs b/src/handler/parent.rs index 5513280..c2406ae 100644 --- a/src/handler/parent.rs +++ b/src/handler/parent.rs @@ -177,7 +177,7 @@ where InheritedParams: Send + Sync + 'static, { fn type_info(&self) -> Option { - self.type_info_impl(&Params::inline()) + self.type_info_impl(&Params::inline_flattened()) } } #[cfg(feature = "ts-rs")]