mirror of
https://github.com/Start9Labs/rpc-toolkit.git
synced 2026-03-26 02:11:56 +00:00
flatten inlining
This commit is contained in:
@@ -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(),
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user