flatten inlining

This commit is contained in:
Aiden McClelland
2025-11-10 18:56:54 -07:00
parent 4f036d0345
commit 2dd2832e04
2 changed files with 7 additions and 7 deletions

View File

@@ -58,8 +58,8 @@ where
fn type_info(&self) -> Option<String> {
Some(format!(
"{{_PARAMS:{},_RETURN:{}}}",
<Self as HandlerTypes>::Params::inline(),
<Self as HandlerTypes>::Ok::inline(),
<Self as HandlerTypes>::Params::inline_flattened(),
<Self as HandlerTypes>::Ok::inline_flattened(),
))
}
}
@@ -183,8 +183,8 @@ where
fn type_info(&self) -> Option<String> {
Some(format!(
"{{_PARAMS:{},_RETURN:{}}}",
<Self as HandlerTypes>::Params::inline(),
<Self as HandlerTypes>::Ok::inline(),
<Self as HandlerTypes>::Params::inline_flattened(),
<Self as HandlerTypes>::Ok::inline_flattened(),
))
}
}
@@ -295,8 +295,8 @@ where
fn type_info(&self) -> Option<String> {
Some(format!(
"{{_PARAMS:{},_RETURN:{}}}",
<Self as HandlerTypes>::Params::inline(),
<Self as HandlerTypes>::Ok::inline(),
<Self as HandlerTypes>::Params::inline_flattened(),
<Self as HandlerTypes>::Ok::inline_flattened(),
))
}
}

View File

@@ -177,7 +177,7 @@ where
InheritedParams: Send + Sync + 'static,
{
fn type_info(&self) -> Option<String> {
self.type_info_impl(&Params::inline())
self.type_info_impl(&Params::inline_flattened())
}
}
#[cfg(feature = "ts-rs")]