mirror of
https://github.com/Start9Labs/rpc-toolkit.git
synced 2026-03-26 02:11:56 +00:00
require empty params for root handler
This commit is contained in:
@@ -164,7 +164,7 @@ impl<Params, InheritedParams> ParentHandler<Params, InheritedParams> {
|
|||||||
#[allow(private_bounds)]
|
#[allow(private_bounds)]
|
||||||
pub fn root_handler<H>(mut self, handler: H) -> Self
|
pub fn root_handler<H>(mut self, handler: H) -> Self
|
||||||
where
|
where
|
||||||
H: IntoHandlers<Flat<Params, InheritedParams>>,
|
H: IntoHandlers<Flat<Params, InheritedParams>> + HandlerTypes<Params = Empty>,
|
||||||
{
|
{
|
||||||
self.subcommands.insert(None, handler.into_handlers());
|
self.subcommands.insert(None, handler.into_handlers());
|
||||||
self
|
self
|
||||||
|
|||||||
Reference in New Issue
Block a user