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")]